Created
December 23, 2014 21:17
-
-
Save Goatform/768e5064c3869f2dafc3 to your computer and use it in GitHub Desktop.
Morph Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| src/server/game/Entities/Unit/Unit.cpp | 5 +++++ | |
| 1 file changed, 5 insertions(+) | |
| diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp | |
| index dba6abb..db931b0 100644 | |
| --- a/src/server/game/Entities/Unit/Unit.cpp | |
| +++ b/src/server/game/Entities/Unit/Unit.cpp | |
| @@ -13111,6 +13111,11 @@ bool Unit::IsInFeralForm() const | |
| bool Unit::IsInDisallowedMountForm() const | |
| { | |
| + if (SpellInfo const* transformSpellInfo = sSpellMgr->GetSpellInfo(getTransForm())) | |
| + if (transformSpellInfo->Attributes & SPELL_ATTR0_CASTABLE_WHILE_MOUNTED) | |
| + return false; | |
| + | |
| if (ShapeshiftForm form = GetShapeshiftForm()) | |
| { | |
| SpellShapeshiftEntry const* shapeshift = sSpellShapeshiftStore.LookupEntry(form); | |
| -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment