TFS[1.2] Combat Parameter - COMBAT_PARAM_PVPDAMAGE
Increase, or decrease spells damage in PvP
Changelog:Increase, or decrease spells damage in PvP
- Support for TFS 1.2 (22/1/2016)
Spell example
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
combat:setParameter(COMBAT_PARAM_PVPDAMAGE, 500)
combat:setParameter(COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
Last edited: