*Fix Gargoyle feeding behaviour - original patch by thenecromancer.

*Add SPELL_TARGET_TYPE_CONTROLLED for spell_script_target table for fast search of units(grid search skipped) and to prevent applying effects to not owned summons

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-04 19:28:31 +02:00
parent 1d7375c545
commit d95e9c1027
7 changed files with 67 additions and 12 deletions
+3 -2
View File
@@ -533,10 +533,11 @@ enum SpellScriptTargetType
{
SPELL_TARGET_TYPE_GAMEOBJECT = 0,
SPELL_TARGET_TYPE_CREATURE = 1,
SPELL_TARGET_TYPE_DEAD = 2
SPELL_TARGET_TYPE_DEAD = 2,
SPELL_TARGET_TYPE_CONTROLLED = 3,
};
#define MAX_SPELL_TARGET_TYPE 3
#define MAX_SPELL_TARGET_TYPE 4
struct SpellTargetEntry
{