Scriptname SuH_sexES_petnattacker extends activemagiceffect  


SuH_Fun property _Fun auto

actor property SuH_actor_dog auto
actor property SuH_actor_wolf auto
actor property SuH_actor_horse auto

string petID

Event OnEffectStart(Actor akTarget, Actor akCaster)
	actor char = akTarget
	if char == SuH_actor_dog
		petID = "dog"
		RegisterForSingleUpdate(5.0)
	elseIf char == SuH_actor_wolf
		petID = "wolf"
		RegisterForSingleUpdate(5.0)
	elseIf char == SuH_actor_horse
		petID = "horse"
		RegisterForSingleUpdate(5.0)
	endIf
endEvent

Event OnUpdate()
	_Fun.xpPet(petID, "a_n")
	RegisterForSingleUpdate(5.0)
endEvent