[9510] Gameobject casting improvements.
commitc365a17a8f66a4a83b429ef6cb746d6f43afa9d6
authorVladimirMangos <vladimir@getmangos.com>
Thu, 4 Mar 2010 01:04:47 +0000 (4 04:04 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Thu, 4 Mar 2010 04:38:26 +0000 (4 07:38 +0300)
treed79bad2fb33ecf248a278b87d682552613a2c869
parentefd4c1b5fda361de4103874f563678558412ee62
[9510] Gameobject casting improvements.

* Add IsHostileTo/IsFriendlyTo and implement expected way checks for diff. world object types.
  For controlled object check redirected to specific owner, for wild gameobject base at gameobject faction.
  If faction not set expected to be hostile to anyone.
* Update grid searchers to be usable with world object instead only unit case.
  Some grid searches lost redundent second object arg, AnyAoETargetUnitInObjectRangeCheck lost hitHidden arg
  (for hitHidden==true case added new AnyAoEVisibleTargetUnitInObjectRangeCheck)
* Updated grid searchers used with gameobject area casts now.
  Note: Gameobject area spell cast animation will still wrong show around cast triggering target instead
  center around gameobject.
* In case gameobject aura apply to target for restored use target itself as caster because
  we not have currently another way apply aura form wild gameobject.
18 files changed:
src/game/Corpse.cpp
src/game/Corpse.h
src/game/DynamicObject.cpp
src/game/DynamicObject.h
src/game/GameObject.cpp
src/game/GameObject.h
src/game/GridNotifiers.cpp
src/game/GridNotifiers.h
src/game/Object.cpp
src/game/Object.h
src/game/Player.cpp
src/game/Player.h
src/game/Spell.cpp
src/game/Spell.h
src/game/SpellAuras.cpp
src/game/SpellEffects.cpp
src/game/Unit.cpp
src/shared/revision_nr.h