aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authorRat <none@none>2010-04-21 13:55:43 +0200
committerRat <none@none>2010-04-21 13:55:43 +0200
commitb7a44ae2baede5000b13c911f434d33a523d9c4c (patch)
treebc3ae2453a40e8bc486c67b76e3eeb989fef2872 /src/game/Creature.cpp
parentb0daeeb4ab06403fd9af1ca21cc8efc860b96c64 (diff)
*fix visibility for trigger creatures
NOTE: if you see any trigger (in player mode) with a visible model (DB bug), please report creature entry + modelid in bugtracker --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 6ae8a97504c..f64cc29b116 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -414,7 +414,7 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData *data)
SetPvP(false);
}
- // HACK: trigger creature is always not selectable
+ // trigger creature is always not selectable and can not be attacked
if (isTrigger())
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
@@ -1751,8 +1751,9 @@ bool Creature::IsVisibleInGridForPlayer(Player const* pl) const
return true;
// Trigger shouldn't be visible for players
- if (isTrigger())
- return false;
+ //if (isTrigger())
+ // return false;
+ // Rat: this makes no sense, triggers are always sent to players, but with invisible model and can not be attacked or targeted!
// Live player (or with not release body see live creatures or death creatures with corpse disappearing time > 0
if (pl->isAlive() || pl->GetDeathTimer() > 0)