Changeset 213 for trunk/src/game/Unit.h
- Timestamp:
- 11/19/08 13:47:00 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Unit.h
r203 r213 58 58 enum SpellAuraInterruptFlags 59 59 { 60 AURA_INTERRUPT_FLAG_ UNK0= 0x00000001, // 0 removed when getting hit by a negative spell?60 AURA_INTERRUPT_FLAG_HITBYSPELL = 0x00000001, // 0 removed when getting hit by a negative spell? 61 61 AURA_INTERRUPT_FLAG_DAMAGE = 0x00000002, // 1 removed by any damage 62 AURA_INTERRUPT_FLAG_ UNK2 = 0x00000004, // 262 AURA_INTERRUPT_FLAG_CC = 0x00000004, // 2 crowd control 63 63 AURA_INTERRUPT_FLAG_MOVE = 0x00000008, // 3 removed by any movement 64 64 AURA_INTERRUPT_FLAG_TURNING = 0x00000010, // 4 removed by any turning 65 AURA_INTERRUPT_FLAG_ ENTER_COMBAT= 0x00000020, // 5 removed by entering combat65 AURA_INTERRUPT_FLAG_JUMP = 0x00000020, // 5 removed by entering combat 66 66 AURA_INTERRUPT_FLAG_NOT_MOUNTED = 0x00000040, // 6 removed by unmounting 67 67 AURA_INTERRUPT_FLAG_NOT_ABOVEWATER = 0x00000080, // 7 removed by entering water 68 68 AURA_INTERRUPT_FLAG_NOT_UNDERWATER = 0x00000100, // 8 removed by leaving water 69 69 AURA_INTERRUPT_FLAG_NOT_SHEATHED = 0x00000200, // 9 removed by unsheathing 70 AURA_INTERRUPT_FLAG_UNK10 = 0x00000400, // 10 71 AURA_INTERRUPT_FLAG_UNK11 = 0x00000800, // 11 72 AURA_INTERRUPT_FLAG_UNK12 = 0x00001000, // 12 removed by attack? 73 AURA_INTERRUPT_FLAG_UNK13 = 0x00002000, // 13 74 AURA_INTERRUPT_FLAG_STEALTH = 0x00003C00, 70 AURA_INTERRUPT_FLAG_LOOT = 0x00000400, // 10 71 AURA_INTERRUPT_FLAG_MOUNT = 0x00000800, // 11 removed by mounting 72 AURA_INTERRUPT_FLAG_ATTACK = 0x00001000, // 12 removed by attacking 73 AURA_INTERRUPT_FLAG_CAST = 0x00002000, // 13 ??? 75 74 AURA_INTERRUPT_FLAG_UNK14 = 0x00004000, // 14 76 AURA_INTERRUPT_FLAG_ UNK15 = 0x00008000, // 15 removed by casting a spell?75 AURA_INTERRUPT_FLAG_TRANSFORM = 0x00008000, // 15 removed by transform? 77 76 AURA_INTERRUPT_FLAG_UNK16 = 0x00010000, // 16 78 AURA_INTERRUPT_FLAG_ MOUNTING = 0x00020000, // 17 removed by mounting77 AURA_INTERRUPT_FLAG_UNK17 = 0x00020000, // 17 misdirect, aspect, swim speed 79 78 AURA_INTERRUPT_FLAG_NOT_SEATED = 0x00040000, // 18 removed by standing up 80 79 AURA_INTERRUPT_FLAG_CHANGE_MAP = 0x00080000, // 19 leaving map/getting teleported 81 AURA_INTERRUPT_FLAG_UN K20 = 0x00100000, // 2080 AURA_INTERRUPT_FLAG_UNATTACKABLE = 0x00100000, // 20 invulnerable or stealth 82 81 AURA_INTERRUPT_FLAG_UNK21 = 0x00200000, // 21 83 AURA_INTERRUPT_FLAG_ UNK22= 0x00400000, // 2282 AURA_INTERRUPT_FLAG_TELEPORTED = 0x00400000, // 22 84 83 AURA_INTERRUPT_FLAG_ENTER_PVP_COMBAT = 0x00800000, // 23 removed by entering pvp combat 85 84 AURA_INTERRUPT_FLAG_DIRECT_DAMAGE = 0x01000000 // 24 removed by any direct damage … … 845 844 846 845 uint16 GetMaxSkillValueForLevel(Unit const* target = NULL) const { return (target ? getLevelForTarget(target) : getLevel()) * 5; } 846 void RemoveSpellbyDamageTaken(uint32 damage, uint32 spell); 847 847 uint32 DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDamage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask, SpellEntry const *spellProto, bool durabilityLoss); 848 848 void DealFlatDamage(Unit *pVictim, SpellEntry const *spellInfo, uint32 *damage, CleanDamage *cleanDamage, bool *crit = false, bool isTriggeredSpell = false); … … 903 903 904 904 bool isInCombat() const { return HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IN_COMBAT); } 905 void CombatStart(Unit* target); 905 906 void SetInCombatState(bool PvP); 906 907 void SetInCombatWith(Unit* enemy); … … 1335 1336 AuraList m_modAuras[TOTAL_AURAS]; 1336 1337 AuraList m_interruptableAuras; 1338 AuraList m_ccAuras; 1337 1339 float m_auraModifiersGroup[UNIT_MOD_END][MODIFIER_TYPE_END]; 1338 1340 float m_weaponDamage[MAX_ATTACK][2];