Core/Maps: Adjusted logic in GetFullTerrainStatusForPosition to closer match what the client does regarding being inside WMOs

Closes #21625
Closes #21624
Closes #21516

(cherry picked from commit b9c6bbb51d)
This commit is contained in:
Shauren
2018-04-07 00:21:51 +02:00
parent 3d9d6fbcb8
commit 453b59de57
10 changed files with 196 additions and 169 deletions

View File

@@ -1827,7 +1827,7 @@ private:
{
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spell_id, difficulty);
if (requireOutdoors && !targetPlayer->GetMap()->IsOutdoors(targetPlayer->GetPhaseShift(), targetPlayer->GetPositionX(), targetPlayer->GetPositionY(), targetPlayer->GetPositionZ()))
if (requireOutdoors && !targetPlayer->IsOutdoors())
return SPELL_FAILED_ONLY_OUTDOORS;
return spellInfo->CheckLocation(targetPlayer->GetMapId(), targetPlayer->GetZoneId(), targetPlayer->GetAreaId(), targetPlayer);