From 453b59de57b3502163adc99a6fc9cbeec0645dcf Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 7 Apr 2018 00:21:51 +0200 Subject: 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 b9c6bbb51df0ed10f74617482740fedb91ff5366) --- src/server/scripts/Spells/spell_druid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index 7016e7c4964..1e6db3d8923 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -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); -- cgit v1.2.3