Scriptname SuH_spellES_teliRealm extends activemagiceffect  

ObjectReference Property SuH_sdr_portalpoint Auto 
ObjectReference Property SuH_sdr_returnpoint Auto 
Actor property PlayerRef auto
Cell property SuH_realm auto

Event OnEffectStart(actor akTarget, actor akCaster)
	if PlayerRef.GetParentCell() == SuH_realm
		Debug.Notification("You are already in the Succubus Realm!")
	else
		SuH_sdr_returnpoint.MoveTo(PlayerRef)
		PlayerRef.MoveTo(SuH_sdr_portalpoint)
	endIf
endEvent