666 {
669 {
670 SpellInfo const* spellInfo = damageInfo->GetSpellInfo();
672 {
673
675 }
676 else
677 {
679 {
681 }
682
683 int32 damage = damageInfo->GetUnmitigatedDamage();
685 }
686 }
687 }
std::int32_t int32
Definition: Define.h:103
@ SPELL_WARRIOR_EXECUTE
Definition: spell_warrior.cpp:44
@ AURA_STATE_HEALTHLESS_20_PERCENT
Definition: SharedDefines.h:1293
DamageInfo * GetDamageInfo() const
Definition: Unit.h:449
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1225
virtual void AddSpellCooldown(uint32, uint32, uint32, bool needSendToClient=false, bool forceSendToSpectator=false)
Definition: Unit.h:1729
bool HasAuraState(AuraStateType flag, SpellInfo const *spellProto=nullptr, Unit const *Caster=nullptr) const
Definition: Unit.cpp:10509
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
uint32 Id
Definition: SpellInfo.h:320
void PreventDefaultAction()
Definition: SpellScript.cpp:985
Unit * GetTarget() const
Definition: SpellScript.cpp:1165