545 B
545 B
Function: GetSpeed(spawn)
Description: Gets the current speed of the Spawn.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.
Returns: Float value of the Spawn's speed.
Example:
-- From Spells/Mage/Summoner/Conjuror/Sleet.lua
function cast(Caster, Target, DDType, MinDDVal, MaxDDVal, SnareAmount, DispelChance)
-- DD component
if MaxDDVal ~= nil and MinDDVal < MaxDDVal then
SpellDamage(Target, DDType, math.random(MinDDVal, MaxDDVal))
else
SpellDamage(Target, DDType, MinDDVal)
end