Core/SmartAI: added SMART_ACTION_INVOKER_CAST, spellID, castFlags,

-if avaliable, last used invoker will cast spellId with castFlags on targets

--HG--
branch : trunk
This commit is contained in:
Rat
2010-11-06 23:18:04 +01:00
parent 3809892987
commit 9781bba535
3 changed files with 16 additions and 0 deletions

View File

@@ -546,6 +546,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder &e)
break;
case SMART_ACTION_ADD_AURA:
case SMART_ACTION_CAST:
case SMART_ACTION_INVOKER_CAST:
if (!IsSpellValid(e, e.action.cast.spell)) return false;
break;
case SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS: