Core/Spells: fix wrong distance calculations in AoE spells [Needs testing] (#16290)

Core/Spells: Fix wrong distance calculations in AoE spells.
Pull request #16290 by chaodhib.
God bless, finally.
This commit is contained in:
Chaouki Dhib
2017-03-23 00:43:04 +01:00
committed by Treeston
parent a88d4e9b00
commit a1f2f30c14
34 changed files with 207 additions and 122 deletions

View File

@@ -927,7 +927,7 @@ public:
uint32 entry = (uint32)atoi(e);
float x, y, z, o = handler->GetSession()->GetPlayer()->GetOrientation();
handler->GetSession()->GetPlayer()->GetClosePoint(x, y, z, handler->GetSession()->GetPlayer()->GetObjectSize());
handler->GetSession()->GetPlayer()->GetClosePoint(x, y, z, handler->GetSession()->GetPlayer()->GetCombatReach());
if (!i)
return handler->GetSession()->GetPlayer()->SummonCreature(entry, x, y, z, o) != nullptr;