No categories assigned

LUA:DismissPet

LUA Functions: DismissPet()

Removes the given pet from the world, or in the case of a charmed pet releases it from the charm spell.

Syntax

DismissPet(param1)


Parameters

Required - param1 (Spawn)
param1 is the pet we want to dismiss


Usage

function cast(Caster, Target)
	SummonPet(Caster, 340083)

end

function remove(Caster, Target)
	pet = GetPet(Caster)
	if pet ~= nil then
		DismissPet(pet)
	end
end

A normal pet spell.