Spells: the cat Feral Charge script names effect 175 SPELL_EFFECT_JUMP_DEST_3 and keeps one jump
The effect 175 change renamed SPELL_EFFECT_175 to SPELL_EFFECT_JUMP_DEST_3 and runs it through EffectJumpDest, which broke the build of the cat Feral Charge script (still using the old name). The script does the jump itself, so it now prevents the default effect: one jump, not two.
This commit is contained in:
@@ -3166,8 +3166,10 @@ class spell_dru_classic_feral_charge_cat : public SpellScript
|
||||
return SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
void HandleLeap(SpellEffIndex /*effIndex*/)
|
||||
void HandleLeap(SpellEffIndex effIndex)
|
||||
{
|
||||
// effect 175 is now SPELL_EFFECT_JUMP_DEST_3 and runs EffectJumpDest itself: this script does the jump, so one jump only
|
||||
PreventHitDefaultEffect(effIndex);
|
||||
Unit* caster = GetCaster();
|
||||
WorldLocation const* dest = GetHitDest();
|
||||
if (!dest || caster->IsInFlight())
|
||||
@@ -3191,7 +3193,7 @@ class spell_dru_classic_feral_charge_cat : public SpellScript
|
||||
void Register() override
|
||||
{
|
||||
OnCheckCast += SpellCheckCastFn(spell_dru_classic_feral_charge_cat::CheckCast);
|
||||
OnEffectLaunch += SpellEffectFn(spell_dru_classic_feral_charge_cat::HandleLeap, EFFECT_0, SPELL_EFFECT_175);
|
||||
OnEffectLaunch += SpellEffectFn(spell_dru_classic_feral_charge_cat::HandleLeap, EFFECT_0, SPELL_EFFECT_JUMP_DEST_3);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user