531 {
533 {
534 if (targetCreature->IsPet())
535 {
538 {
541 break;
543 {
545 int32 hp =
int32(targetCreature->CountPctFromMaxHealth(
GetCaster()->CalculateSpellDamage(targetCreature, spellInfo, 0)));
547
548 break;
549 }
552 break;
555 break;
558 break;
559 }
560 }
561 }
562 }
std::int32_t int32
Definition: Define.h:103
@ SPELL_WARLOCK_DEMONIC_EMPOWERMENT_SUCCUBUS
Definition: spell_warlock.cpp:41
@ SPELL_WARLOCK_DEMONIC_EMPOWERMENT_FELGUARD
Definition: spell_warlock.cpp:43
@ SPELL_WARLOCK_DEMONIC_EMPOWERMENT_FELHUNTER
Definition: spell_warlock.cpp:44
@ SPELL_WARLOCK_DEMONIC_EMPOWERMENT_VOIDWALKER
Definition: spell_warlock.cpp:42
@ SPELL_WARLOCK_DEMONIC_EMPOWERMENT_IMP
Definition: spell_warlock.cpp:45
@ CREATURE_FAMILY_FELGUARD
Definition: SharedDefines.h:2674
@ CREATURE_FAMILY_IMP
Definition: SharedDefines.h:2668
@ CREATURE_FAMILY_VOIDWALKER
Definition: SharedDefines.h:2663
@ CREATURE_FAMILY_FELHUNTER
Definition: SharedDefines.h:2662
@ CREATURE_FAMILY_SUCCUBUS
Definition: SharedDefines.h:2664
#define sObjectMgr
Definition: ObjectMgr.h:1635
#define sSpellMgr
Definition: SpellMgr.h:825
Definition: Creature.h:43
Definition: CreatureData.h:186
uint32 family
Definition: CreatureData.h:217
Definition: SpellInfo.h:316
Creature * GetHitCreature()
Definition: SpellScript.cpp:458
Unit * GetCaster()
Definition: SpellScript.cpp:401