Core/Battlefield: Correct previous commit
This commit is contained in:
1 parent
9dd3789719
commit
aa0ff294d2
2 files changed
+3
-3
No files matched your search
@@ -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