Allow mounting while under transformations that can be cast while mounted.

Closes #12042.

Credit to @SeTM for base code used.
This commit is contained in:
treeston committed 2015-09-07 19:04:44 +02:00
1 parent a32793ffd3
commit d42a498063
1 file changed
+4
+4
View File
@@ -13171,6 +13171,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())
{
SpellShapeshiftEntry const* shapeshift = sSpellShapeshiftStore.LookupEntry(form);