Hey, I've an issue with energy, fire, poison wall runes and unable to fix it. (TFS 1.3)
Nothing happends, when I shot the rune diagonal. I think there is a bug with createCombatArea or AREADIAGONAL_WALLFIELD.
Nothing happends, when I shot the rune diagonal. I think there is a bug with createCombatArea or AREADIAGONAL_WALLFIELD.
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_ENERGYFIELD_PVP)
combat:setArea(createCombatArea(AREA_WALLFIELD, AREADIAGONAL_WALLFIELD))
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end