No categories assigned

LUA:IsGroundSpawn

LUA Functions: IsGroundSpawn()

Checks to see if the given spawn is a ground spawn


Syntax

var = IsGroundSpawn(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to check


Usage

function precast(Caster, Target)
	if IsGroundSpawn(Target) then
		return CanHarvest(Caster, Target)
	end
	
	return false
end

This spell will check to see if a spawn is a ground spawn before checking to see if the caster can harvest it.

Notes

Returns a bool