Scripts/Spells: Remove old hack from spell_gen_running_wild

Port From (https://github.com/TrinityCore/TrinityCore/commit/534990b10289ae66ebb4029874179eb35160a069)
This commit is contained in:
Hondacrx
2025-08-20 22:16:15 -04:00
parent 4cc76e002a
commit ab76fd7d0f
+1 -4
View File
@@ -2887,12 +2887,9 @@ namespace Scripts.Spells.Generic
return ValidateSpellInfo(RunningWildMountIds.AlteredForm); return ValidateSpellInfo(RunningWildMountIds.AlteredForm);
} }
public override bool Load() public override void OnPrecast()
{ {
// Definitely not a good thing, but currently the only way to do something at cast start
// Should be replaced as soon as possible with a new hook: BeforeCastStart
GetCaster().CastSpell(GetCaster(), RunningWildMountIds.AlteredForm, TriggerCastFlags.FullMask); GetCaster().CastSpell(GetCaster(), RunningWildMountIds.AlteredForm, TriggerCastFlags.FullMask);
return false;
} }
public override void Register() public override void Register()