mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix (core): inhabit CanSwim revert (#11475)
This commit is contained in:
@@ -3035,7 +3035,7 @@ bool Creature::SetSwim(bool enable)
|
|||||||
*/
|
*/
|
||||||
bool Creature::CanSwim() const
|
bool Creature::CanSwim() const
|
||||||
{
|
{
|
||||||
if (Unit::CanSwim())
|
if (Unit::CanSwim() || (!Unit::CanSwim() && !CanFly()))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (IsPet())
|
if (IsPet())
|
||||||
|
|||||||
Reference in New Issue
Block a user