aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerripeach <phillip.wow@gmx.de>2013-10-20 06:17:11 +0200
committergerripeach <phillip.wow@gmx.de>2013-10-20 06:17:11 +0200
commit7223adb0a0801ff46112ffd50826ee2fbef7cf69 (patch)
tree83d301f06f4247b91afa3bc4340444902d08031e
parentfaa23e118a484f1195a1caaa49f589d40ceaa5b3 (diff)
Core/Pet: Allow all pets to swim
closes: #9331
-rw-r--r--src/server/game/Entities/Creature/Creature.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.h b/src/server/game/Entities/Creature/Creature.h
index a555469da63..4f43305c54f 100644
--- a/src/server/game/Entities/Creature/Creature.h
+++ b/src/server/game/Entities/Creature/Creature.h
@@ -447,7 +447,7 @@ class Creature : public Unit, public GridObject<Creature>, public MapObject
bool IsTrigger() const { return GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_TRIGGER; }
bool IsGuard() const { return GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_GUARD; }
bool CanWalk() const { return GetCreatureTemplate()->InhabitType & INHABIT_GROUND; }
- bool CanSwim() const { return GetCreatureTemplate()->InhabitType & INHABIT_WATER; }
+ bool CanSwim() const { return GetCreatureTemplate()->InhabitType & INHABIT_WATER || IsPet(); }
bool CanFly() const { return GetCreatureTemplate()->InhabitType & INHABIT_AIR; }
void SetReactState(ReactStates st) { m_reactState = st; }