[9089] Check explicit target correctness by all effect target modes.
commitd3581f703a55b7efd705fa84d5642f0d30efb85e
authorNetSky <NetSky@getmangos.com>
Thu, 31 Dec 2009 12:14:06 +0000 (31 15:14 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Thu, 31 Dec 2009 12:32:00 +0000 (31 15:32 +0300)
tree4eca007e4099586c0272bb7d97f41332ef7fae8a
parent09428ebad23b2d408cbb20d2608aa988cd473b0e
[9089] Check explicit target correctness by all effect target modes.

All effect target modes start from client provided target data
so all its must be used for checking explicit target modes.
For example exist spells that have as first effect SELF non-explicit target mode.
but in same time negative to explicit target.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
Also add caching IsHostileTo/IsFriendlyTo for avoid recall this not fast functions.
src/game/Spell.cpp
src/shared/revision_nr.h