--ゴルゴニック・グール
function c90764875.initial_effect(c)
	--special summon
	local e1=Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(90764875,0))
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_IGNITION)
	e1:SetRange(LOCATION_HAND)
	e1:SetCondition(c90764875.spcon)
	e1:SetCost(c90764875.spcost)
	e1:SetTarget(c90764875.sptg)
	e1:SetOperation(c90764875.spop)
	c:RegisterEffect(e1)
end
function c90764875.cfilter(c)
	return c:IsFaceup() and c:IsCode(90764875)
end
function c90764875.spcon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsExistingMatchingCard(c90764875.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function c90764875.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.GetFlagEffect(tp,90764875)<2 and Duel.CheckLPCost(tp,300) end
	Duel.PayLPCost(tp,300)
	Duel.RegisterFlagEffect(tp,90764875,RESET_PHASE+PHASE_END,0,1)
end
function c90764875.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
		and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c90764875.spop(e,tp,eg,ep,ev,re,r,rp)
	if e:GetHandler():IsRelateToEffect(e) then
		Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
	end
end
