[8658] Threat calculation fixes and improvements.
commit184c2d130565cbf032beb1881ecafbe4f8e5d5ad
authorVladimirMangos <vladimir@getmangos.com>
Sat, 17 Oct 2009 06:47:44 +0000 (17 10:47 +0400)
committerVladimirMangos <vladimir@getmangos.com>
Sat, 17 Oct 2009 07:02:30 +0000 (17 11:02 +0400)
tree1d6464fa041fc26ac9638e34e9ed3678a97527eb
parent1e43f44d3b6f3ebed204c97ef5c437e51068e988
[8658] Threat calculation fixes and improvements.

* Add single arg version Unit::AddThreat for just adding to threat list.
* Req. provide schollmask and crit flag for any real threat value for proper threats mod apply.
* Send crit flag in DealDamage as MELEE_HIT_CRIT for spell damage for later send to threat call.
* For not affected by modifiers threat values use SPELL_SCHOOL_MASK_NONE.
* Implement aura SPELL_AURA_MOD_CRITICAL_THREAT (used only in itemset 529 effect).
15 files changed:
src/game/AggressorAI.cpp
src/game/Creature.cpp
src/game/CreatureEventAI.cpp
src/game/GuardAI.cpp
src/game/HostilRefManager.cpp
src/game/PetAI.cpp
src/game/ReactorAI.cpp
src/game/Spell.cpp
src/game/SpellAuras.cpp
src/game/SpellEffects.cpp
src/game/ThreatManager.cpp
src/game/ThreatManager.h
src/game/Unit.cpp
src/game/Unit.h
src/shared/revision_nr.h