Core: Fixes some warnings
Core/SmartAI: Fixed DamageTaken and DamageDealt hooks --HG-- branch : trunk extra : rebase_source : 062f1c68cd1d318d192b294a493db17a1943bee2
This commit is contained in:
@@ -620,7 +620,7 @@ void SmartAI::SpellHitTarget(Unit* target, const SpellEntry* pSpell)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_SPELLHIT_TARGET, target, 0, 0, false, pSpell);
|
||||
}
|
||||
|
||||
void SmartAI::DamageTaken(Unit* done_by, uint32& damage, DamageEffectType /*damagetype*/)
|
||||
void SmartAI::DamageTaken(Unit* done_by, uint32& damage)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_DAMAGED, done_by, damage);
|
||||
}
|
||||
@@ -640,7 +640,7 @@ void SmartAI::IsSummonedBy(Unit* summoner)
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_JUST_SUMMONED, summoner);
|
||||
}
|
||||
|
||||
void SmartAI::DamageDealt(Unit* done_to, uint32& damage)
|
||||
void SmartAI::DamageDealt(Unit* done_to, uint32& damage, DamageEffectType /*damagetype*/)
|
||||
{
|
||||
GetScript()->ProcessEventsFor(SMART_EVENT_DAMAGED_TARGET, done_to, damage);
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ class SmartAI : public CreatureAI
|
||||
void SpellHitTarget(Unit* target, const SpellEntry* pSpell);
|
||||
|
||||
// Called at any Damage from any attacker (before damage apply)
|
||||
void DamageTaken(Unit* done_by, uint32& damage, DamageEffectType damagetype);
|
||||
void DamageTaken(Unit* done_by, uint32& damage);
|
||||
|
||||
// Called when the creature receives heal
|
||||
void HealReceived(Unit* done_by, uint32& addhealth);
|
||||
@@ -124,7 +124,7 @@ class SmartAI : public CreatureAI
|
||||
void IsSummonedBy(Unit* summoner);
|
||||
|
||||
// Called at any Damage to any victim (before damage apply)
|
||||
void DamageDealt(Unit * done_to, uint32 & damage);
|
||||
void DamageDealt(Unit * done_to, uint32 & damage, DamageEffectType /*damagetype*/);
|
||||
|
||||
// Called when a summoned creature dissapears (UnSommoned)
|
||||
void SummonedCreatureDespawn(Creature* unit);
|
||||
|
||||
Reference in New Issue
Block a user