Core/Script: fix Silithus Wind Stone exploit (#26808)

* Core/Script: fix Silithus Wind Stone exploit

* corrections

Closes #23577
This commit is contained in:
Jinnaix
2021-08-14 13:34:51 +02:00
committed by GitHub
parent f620befc37
commit 6bcda49e98

View File

@@ -1214,7 +1214,7 @@ class go_wind_stone : public GameObjectScript
void SummonNPC(GameObject* go, Player* player, uint32 npc, uint32 spell)
{
go->CastSpell(player, spell);
player->CastSpell(player, spell);
TempSummon* summons = go->SummonCreature(npc, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), player->GetOrientation() - float(M_PI), TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 10min);
summons->CastSpell(summons, SPELL_SPAWN_IN, false);
switch (summons->GetEntry())