Scriptname SilverPoisonRevertsVL extends activemagiceffect  

GlobalVariable Property VampireDawnguardInstalled Auto
GlobalVariable Property VampireHuntersRevertVL Auto
GlobalVariable Property VampireCannotTurnVL Auto
Spell Property DLC1RevertForm Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

	If akTarget == Game.GetPlayer() && VampireDawnguardInstalled.GetValue() == 10000 && VampireHuntersRevertVL.GetValue() == 10000 && Game.GetPlayer().HasSpell(DLC1RevertForm)
			;Debug.Notification("You've Been Reverted!")	
			VampireCannotTurnVL.SetValue(10000)
			DLC1RevertForm.Cast(Game.GetPlayer(), Game.GetPlayer())
	EndIf						

EndEvent
