local combat = createCombatObject()
local condition = Condition(CONDITION_OUTFIT)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setOutfit({lookType = 242}) -- rat
combat:setCondition(condition)
function onCastSpell(creature, variant)
return combat:execute(creature, variant)
end
I'm trying to create a spell for a monster it will turn the player into a creation after 6 seconds the player will explode and damage all players around and return to normal