905 B
905 B
Function: CureByControlEffect(cure_count, cure_type, cure_name, cure_level, target)
Description: Cures the control effects. cure_count controls the amount of cures activated, cure_type will be the control effect type. If in a spell script and no target it will apply to all spell targets.
Parameters:
cure_count
(uint8) - Integer valuecure_count
.cure_type
(uint8) - Integer valuecure_type
.cure_name
(string) - Stringcure_name
.cure_level
(uint8) - Integer valuecure_level
.target
(Spawn) - Spawn object representingtarget
.
Returns: None.
Example:
-- From Spells/Priest/Cleric/Inquisitor/FerventFaith.lua
function cast(Caster, Target, Levels)
CureByControlEffect(1, 1, "Cure", Levels)
CureByControlEffect(1, 2, "Cure", Levels)
CureByControlEffect(1, 3, "Cure", Levels)
CureByControlEffect(1, 4, "Cure", Levels)
end