No categories assigned

LUA:GetDeityPet

LUA Functions: GetDeityPet()

Gets the deity pet for the given spawn

Syntax

GetDeityPet(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's deity pet we want to get


Usage

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

end

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

A deity pet spell.