Merge pull request #15452 from Treeston/3.3.5

Core/Unit: Allow mounting for certain transformations
(cherry picked from commit 6cdfe9dc095bd19ea495c22cb41cd82f1212b6cd)
This commit is contained in:
Duarte Duarte
2015-09-25 00:03:23 +02:00
committed by Carbenium
parent 7893ac6baf
commit eb65c8051c
+4
View File
@@ -11251,6 +11251,10 @@ bool Unit::IsInFeralForm() const
bool Unit::IsInDisallowedMountForm() const
{
if (SpellInfo const* transformSpellInfo = sSpellMgr->GetSpellInfo(getTransForm()))
if (transformSpellInfo->HasAttribute(SPELL_ATTR0_CASTABLE_WHILE_MOUNTED))
return false;
if (ShapeshiftForm form = GetShapeshiftForm())
{
SpellShapeshiftFormEntry const* shapeshift = sSpellShapeshiftFormStore.LookupEntry(form);