Core/SmartAI: added ACTION_CROSS_CAST

CasterTargets will cast spellID on all Targets
NOTE: use with caution if targeting multiple * multiple units!

--HG--
branch : trunk
This commit is contained in:
Rat committed 2010-11-07 18:34:04 +01:00
1 parent 205736ea84
commit 044c003bdd
3 files changed
+31 -2

No files matched your search

@@ -432,8 +432,9 @@ enum SMART_ACTION
SMART_ACTION_REMOVE_NPC_FLAG = 83, // Flags
SMART_ACTION_SIMPLE_TALK = 84, // groupID, can be used to make players say groupID, Text_over event is not triggered, whisper can not be used (Target units will say the text)
SMART_ACTION_INVOKER_CAST = 85, // spellID, castFlags, if avaliable, last used invoker will cast spellId with castFlags on targets
SMART_ACTION_END = 86,
SMART_ACTION_CROSS_CAST = 86, // spellID, castFlags, CasterTargetType, CasterTarget param1, CasterTarget param2, CasterTarget param3, ( + the origonal target fields as Destination target), CasterTargets will cast spellID on all Targets (use with caution if targeting multiple * multiple units)
SMART_ACTION_END = 87,
};
struct SmartAction
@@ -495,6 +496,10 @@ struct SmartAction
{
uint32 spell;
uint32 flags;
uint32 targetType;
uint32 targetParam1;
uint32 targetParam2;
uint32 targetParam3;
} cast;
struct