381 B
381 B
Function: SetMaxHP(spawn, value)
Description: Set's the Max HP of the Spawn (As a Spell Bonus) to the new value.
Parameters:
spawn
(Spawn) - Spawn object referencespawn
.value
(int32) - Integer valuevalue
.
Returns: None.
Example:
-- From ItemScripts/devpotion.lua
function examined(Item, Player)
SetMaxHP(Player, GetMaxHP * 3)
end