Lbtg
Intermediate OT User
- Joined
- Nov 22, 2008
- Messages
- 2,311
- Reaction score
- 133
Hello the spell exeta res for knights, doesnt work
There is no errors.
any ideas how to fix ?
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setArea(createCombatArea(AREA_SQUARE1X1))
function onTargetCreature(creature, target)
return doChallengeCreature(creature, target)
end
combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
There is no errors.
any ideas how to fix ?