PDA

Просмотр полной версии : [9510] Gameobject casting improvements.


newsbot
04.03.2010, 07:40
<pre>m src/game/Corpse.cpp
m src/game/Corpse.h
m src/game/DynamicObject.cpp
m src/game/DynamicObject.h
m src/game/GameObject.cpp
m src/game/GameObject.h
m src/game/GridNotifiers.cpp
m src/game/GridNotifiers.h
m src/game/Object.cpp
m src/game/Object.h
m src/game/Player.cpp
m src/game/Player.h
m src/game/Spell.cpp
m src/game/Spell.h
m src/game/SpellAuras.cpp
m src/game/SpellEffects.cpp
m src/game/Unit.cpp
m src/shared/revision_nr.h

[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.</pre>



Дальше... (http://github.com/mangos/mangos/commit/c365a17a8f66a4a83b429ef6cb746d6f43afa9d6)