mirror of
https://github.com/emagi/eq2emu
synced 2026-08-12 18:23:04 -04:00
738 B
738 B
Function: SpellDamage(target, type, min_damage, max_damage, crit_mod, no_calcs, class_id)
Description: Damage a Target inside of a Spell Script.
Parameters:
luaspell(int32) - Integer valueluaspell.type(int32) - Integer valuetype.min_damage(int32) - Integer valuemin_damage.max_damage(int32) - Integer valuemax_damage.crit_mod(int32) - Integer valuecrit_mod.no_calcs(int32) - Integer valueno_calcs.class_id(uint32) - Integer valueclass_id.
Returns: None.
Example:
-- From Spells/AA/AmbidexterousCasting.lua
function cast(Caster, Target, DmgType, MinVal, MaxVal)
Interrupt(Caster, Target)
SpellDamage(Target, DmgType, MinVal, MaxVal)
end