Core/Players: simplified mount capability update checks and removed a unneeded call uppon changing liquid status

This commit is contained in:
Ovahlord committed 2020-01-27 09:49:26 +01:00
1 parent e410c3498b
commit a72411241d
2 files changed
+11 -17

No files matched your search

-4
View File
@@ -3312,10 +3312,6 @@ void Unit::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidData>
if (curLiquid && curLiquid->SpellID && (!player || !player->IsGameMaster()))
CastSpell(this, curLiquid->SpellID, true);
// Update mount capabilities when changing liquidstatus (enabling / disabling flight auras for example)
if (player)
player->UpdateMountCapabilities();
}
}
void Unit::DeMorph()