*Add function EnergizeBySpell. Author: nos4r2zod
--HG-- branch : trunk
This commit is contained in:
1 parent
6f7998cbaf
commit
461a799a52
4 files changed
+13
-10
No files matched your search
@@ -8943,6 +8943,13 @@ void Unit::SendEnergizeSpellLog(Unit *pVictim, uint32 SpellID, uint32 Damage, Po
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Unit::EnergizeBySpell(Unit *pVictim, uint32 SpellID, uint32 Damage, Powers powertype)
|
||||
{
|
||||
SendEnergizeSpellLog(pVictim, SpellID, Damage, powertype);
|
||||
// needs to be called after sending spell log
|
||||
ModifyPower(powertype, Damage);
|
||||
}
|
||||
|
||||
uint32 Unit::SpellDamageBonus(Unit *pVictim, SpellEntry const *spellProto, uint32 pdamage, DamageEffectType damagetype, uint32 stack)
|
||||
{
|
||||
if(!spellProto || !pVictim || damagetype==DIRECT_DAMAGE )
|
||||
|
||||
Reference in new issue
Block a user