◆ HandleScriptEffect()
void spell_kaelthas_remove_enchanted_weapons::HandleScriptEffect |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
1147 {
1149 if (!target || !target->
IsPlayer())
1150 return;
1159 }
TriggerCastFlags
Definition SpellDefines.h:132
@ TRIGGERED_FULL_MASK
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
Definition SpellDefines.h:150
@ TRIGGERED_IGNORE_POWER_AND_REAGENT_COST
Will ignore Spell and Category cooldowns.
Definition SpellDefines.h:136
bool IsPlayer() const
Definition Object.h:200
Unit * GetHitUnit()
Definition SpellScript.cpp:448
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:1178
References Unit::CastSpell(), SpellScript::GetHitUnit(), Object::IsPlayer(), TRIGGERED_FULL_MASK, and TRIGGERED_IGNORE_POWER_AND_REAGENT_COST.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_kaelthas_remove_enchanted_weapons::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: