[9035] Attempt make more fast and less hackish spell target checks
commit09d4805bacf56f1f3d6a02d0c2417caf9f08cdd5
authorVladimirMangos <vladimir@getmangos.com>
Sun, 20 Dec 2009 00:26:39 +0000 (20 03:26 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Sun, 20 Dec 2009 00:29:36 +0000 (20 03:29 +0300)
treefcdc02604a77a24b1ce2a46509ad1fcf556348f9
parent1c02808eb8addf4ecacfcc4901267dc95db88824
[9035] Attempt make more fast and less hackish spell target checks

* Enable server side recheck clear negative to friend or positive to enemy casts that already checks at client side
* Use more fast way check in similar cases for non-players, and fall back to old way in unclear (for while at least)

Please report if some spell stop propertly casted at friends/enemies.
src/game/Spell.cpp
src/game/SpellMgr.cpp
src/game/SpellMgr.h
src/shared/revision_nr.h