diff options
author | ModoX <moardox@gmail.com> | 2021-10-23 11:42:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 11:42:47 +0200 |
commit | 8b171d7c019f0010ec05af92466261d4be78bfff (patch) | |
tree | f3c40875776e1987a2d52e758b2aec16ad394892 /src/server/game/Spells/Spell.cpp | |
parent | b6f4b5340792bfdf5f73c6bccd3a5f4a926f00fa (diff) |
Core/Instances: Drop allowMount column in instance_template as it is already handled properly by SPELL_ATTR0_OUTDOORS_ONLY (#27148)
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index aacba1e1f30..7e095a31639 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -6055,14 +6055,6 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32 if (unitCaster->IsInWater() && m_spellInfo->HasAura(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED)) return SPELL_FAILED_ONLY_ABOVEWATER; - // Ignore map check if spell have AreaId. AreaId already checked and this prevent special mount spells - bool allowMount = !unitCaster->GetMap()->IsDungeon() || unitCaster->GetMap()->IsBattlegroundOrArena(); - InstanceTemplate const* it = sObjectMgr->GetInstanceTemplate(unitCaster->GetMapId()); - if (it) - allowMount = it->AllowMount; - if (unitCaster->GetTypeId() == TYPEID_PLAYER && !allowMount && !m_spellInfo->RequiredAreasID) - return SPELL_FAILED_NO_MOUNTS_ALLOWED; - if (unitCaster->IsInDisallowedMountForm()) { SendMountResult(MountResult::Shapeshifted); // mount result gets sent before the cast result |