[9323] Fixes in code work with original caster guid.
commitdefd3a9274c3935509371383e225958fa63d0e20
authorVladimirMangos <vladimir@getmangos.com>
Sun, 7 Feb 2010 21:31:12 +0000 (8 00:31 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Sun, 7 Feb 2010 21:53:03 +0000 (8 00:53 +0300)
treef3b2a1d8bd37a463cc1007d45023098f1f9a0177
parenta5440582399366e2c32431cd63ba768414ebb0b3
[9323] Fixes in code work with original caster guid.

* Add 2 function for 2 used way for original caster
  - GetAffectiveCaster(), is posible NULL unit as source spell affects
    (explcit caster, GO owner, caster of aura that trigering affect)..
  - GetCastingObject(), possible NULL world object as in game spell effects
    source, cast center, etc, need because original caster can store GO
    guid that apply effect around. In other cases m_caster
* Use functions and avoid use explicitly m_originalCaster
* Use GetAffectiveCaster() for fix explicit GO cast at near unit, like now fixed campfire bonus.
src/game/Spell.cpp
src/game/Spell.h
src/game/SpellEffects.cpp
src/shared/revision_nr.h