mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Battlefield: Correct previous commit
This commit is contained in:
@@ -564,7 +564,7 @@ void BattlefieldWG::OnCreatureCreate(Creature* creature)
|
||||
}
|
||||
}
|
||||
if (creature->GetOwner())
|
||||
creature->CastSpell(creature->GetOwner(),SPELL_GRAB_PASSENGER,true);
|
||||
creature->CastSpell(creature->GetOwner(), SPELL_GRAB_PASSENGER, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -501,10 +501,10 @@ class spell_wintergrasp_grab_passenger : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_wintergrasp_grab_passenger_SpellScript);
|
||||
|
||||
void HandleScript(SpellEffIndex effIndex)
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Player* target = GetHitPlayer())
|
||||
GetCaster()->GetVehicleKit()->AddPassenger(target);
|
||||
target->EnterVehicle(GetCaster());
|
||||
}
|
||||
|
||||
void Register()
|
||||
|
||||
Reference in New Issue
Block a user