Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
I'm trying to make a spell that the first part is not aggressive so it can be casted inside protection zone and be casted at the same time as attack spells, but the second part is aggressive. The part that is casted depends which if statement is true I have this for my combats:
is this possible? As of right now with no aggressive tag in spells.xml i can't use it in protection zone or while casting an attack spell, which i do have this spell set in the healing group. If i do aggressive="0" then it can use the part that i want aggressive in protection zone but I can cast at the same time as attack spells.
HTML:
local combat1 = Combat()
combat1:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat1:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat1:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat1:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local combat2 = Combat()
combat2:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat2:setParameter(COMBAT_PARAM_AGGRESSIVE, true)