You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:CureByControlEffect"
(→Syntax) |
(→LUA Functions: CureByControlEffect()) |
||
| Line 1: | Line 1: | ||
= LUA Functions: CureByControlEffect() = | = LUA Functions: CureByControlEffect() = | ||
| − | Cures detriments determined by the | + | Cures detriments determined by the control effect associated with the detriment, if any. |
Latest revision as of 20:34, 16 January 2014
LUA Functions: CureByControlEffect()
Cures detriments determined by the control effect associated with the detriment, if any.
Syntax
CureByControlEffect(param1, param2, param3, param4, param5)
Parameters
- Required - param1 (int8), param2 (int8
- param1 is the max amount of detriments allowed to be cured
- param2 is the type of the control effect of the detriment to be cured
- Optional - param3 (string), param4 (int8), param5 (Spawn)
- param3 is an override of the spellname for the dispell packet (example: one cure spell has a different name than the cure effect, use the effect name)
- param4 is the max level of the effect allowed to be cured, if left 0 any level will be cured
- param5 is a target override if you wish to not use every target of the spell
Usage
function cast(Caster, Target)
CureByControlEffect(1, 3, "Cure", 10)
end
This will cure one Daze detrimental effect from the spell's targets, up to a max level of 10, and send the spellname as "Cure" in the dispell packet.
Notes
Control effect types are 1 = Mez, 2 = Stifle, 3 = Daze, 4 = Stun.