Core/AI: Fix some wannabe-invinceable typos here and there...
This commit is contained in:
1 parent
d94608777c
commit
cf29214364
5 files changed
+14
-14
No files matched your search
@@ -68,7 +68,7 @@ SmartAI::SmartAI(Creature* c) : CreatureAI(c)
|
||||
mFollowCredit = 0;
|
||||
mFollowArrivedEntry = 0;
|
||||
mFollowCreditType = 0;
|
||||
mInvinceabilityHpLevel = 0;
|
||||
mInvincibilityHpLevel = 0;
|
||||
}
|
||||
|
||||
void SmartAI::UpdateDespawn(const uint32 diff)
|
||||
@@ -638,8 +638,8 @@ void SmartAI::SpellHitTarget(Unit* target, const SpellInfo* spellInfo)
|
||||
void SmartAI::DamageTaken(Unit* doneBy, uint32& damage)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_DAMAGED, doneBy, damage);
|
||||
if ((me->GetHealth() - damage) <= mInvinceabilityHpLevel)
|
||||
damage = me->GetHealth() - mInvinceabilityHpLevel;
|
||||
if ((me->GetHealth() - damage) <= mInvincibilityHpLevel)
|
||||
damage = me->GetHealth() - mInvincibilityHpLevel;
|
||||
}
|
||||
|
||||
void SmartAI::HealReceived(Unit* doneBy, uint32& addhealth)
|
||||
|
||||
Reference in new issue
Block a user