aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-19 20:08:32 -0600
committermegamage <none@none>2009-01-19 20:08:32 -0600
commitd1f6472e2bb6c55d6e837eefdeb7efdd10018a81 (patch)
tree5fe8065bffb904aa78a70176dc4341d18cadf179
parenta0d8ee6fddc456b6589db5a235ae6eb6b86b0b12 (diff)
*Fix a bug that pet attacks owner.
--HG-- branch : trunk
-rw-r--r--src/game/Unit.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h
index 9b39254ee1e..07899aff090 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -356,7 +356,7 @@ enum UnitState
UNIT_STAT_STUNNED = 0x00000008,
UNIT_STAT_ROAMING = 0x00000010,
UNIT_STAT_CHASE = 0x00000020,
- UNIT_STAT_SEARCHING = 0x00000040,
+ //UNIT_STAT_SEARCHING = 0x00000040,
UNIT_STAT_FLEEING = 0x00000080,
UNIT_STAT_IN_FLIGHT = 0x00000100, // player is in flight mode
UNIT_STAT_FOLLOW = 0x00000200,
@@ -368,9 +368,9 @@ enum UnitState
UNIT_STAT_CASTING = 0x00008000,
UNIT_STAT_POSSESSED = 0x00010000,
UNIT_STAT_CHARGING = 0x00020000,
- UNIT_STAT_MOVING = (UNIT_STAT_ROAMING | UNIT_STAT_CHASE | UNIT_STAT_SEARCHING | UNIT_STAT_FOLLOW),
+ UNIT_STAT_MOVING = (UNIT_STAT_ROAMING | UNIT_STAT_CHASE),
UNIT_STAT_LOST_CONTROL = (UNIT_STAT_CONFUSED | UNIT_STAT_STUNNED | UNIT_STAT_FLEEING | UNIT_STAT_CHARGING),
- UNIT_STAT_SIGHTLESS = (UNIT_STAT_LOST_CONTROL | UNIT_STAT_CHASE | UNIT_STAT_SEARCHING),
+ UNIT_STAT_SIGHTLESS = (UNIT_STAT_LOST_CONTROL | UNIT_STAT_CHASE),
UNIT_STAT_CANNOT_AUTOATTACK = (UNIT_STAT_LOST_CONTROL | UNIT_STAT_CASTING),
UNIT_STAT_ALL_STATE = 0xffffffff //(UNIT_STAT_STOPPED | UNIT_STAT_MOVING | UNIT_STAT_IN_COMBAT | UNIT_STAT_IN_FLIGHT)
};
@@ -1419,8 +1419,6 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
AuraMap m_Auras;
- std::list<Aura *> m_scAuras; // casted singlecast auras
-
typedef std::list<uint64> DynObjectGUIDs;
DynObjectGUIDs m_dynObjGUIDs;
@@ -1430,9 +1428,11 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
uint32 m_removedAuras;
AuraList m_modAuras[TOTAL_AURAS];
- uint32 m_interruptMask;
+ AuraList m_scAuras; // casted singlecast auras
AuraList m_interruptableAuras;
AuraList m_ccAuras;
+ uint32 m_interruptMask;
+
float m_auraModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_END];
float m_weaponDamage[MAX_ATTACK][2];
bool m_canModifyStats;