summaryrefslogtreecommitdiffstats
path: root/src/MonsterConfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/MonsterConfig.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/MonsterConfig.cpp b/src/MonsterConfig.cpp
index 78761aa2d..fdd15e01e 100644
--- a/src/MonsterConfig.cpp
+++ b/src/MonsterConfig.cpp
@@ -91,14 +91,13 @@ void cMonsterConfig::AssignAttributes(cMonster * a_Monster, const AString & a_Na
{
if (itr->m_Name.compare(a_Name) == 0)
{
- cBehaviorAttacker * Chaser = a_Monster->GetBehaviorAttacker();
+ cBehaviorAttacker * Attacker = a_Monster->GetBehaviorAttacker();
- // mobTodo chaser is kind of "attacker", not really chaser?
- if (Chaser != nullptr)
+ if (Attacker != nullptr)
{
- Chaser->SetAttackDamage (itr->m_AttackDamage);
- Chaser->SetAttackRange (itr->m_AttackRange);
- Chaser->SetAttackRate (static_cast<float>(itr->m_AttackRate));
+ Attacker->SetAttackDamage (itr->m_AttackDamage);
+ Attacker->SetAttackRange (itr->m_AttackRange);
+ Attacker->SetAttackRate (static_cast<float>(itr->m_AttackRate));
}
a_Monster->SetMaxHealth (itr->m_MaxHealth);