:: spell
<<set $here = 'spell'>>
<<set $ARGS = $location_var[$here]>>
<!-- ! This Location contains the meat of what each spell does to the PC, NPCs, and the environment. Mana costs are handled elsewhere.-->
<!-- ! This location should not be called directly.  Should only be called through the "castSpell" location.-->
<!-- !	$larg(0) = the name of the spell being cast-->
<!-- !	$larg(1) = Spell Success value-->
<!-- !		2  = Critical Success	-> You can make something extra specail happen-->
<!-- !		1  = Success			-> Normal spell effects-->
<!-- !		0  = Failure			-> Spell doesn''t work, probably just fizzles out-->
<!-- !		-1 = Critical Failure	-> Spell backfires.  Something bad (not terrible) should happen-->
<!-- !	$larg(n >= 2) = Any extra parameters needed by the spell-->
<!-- !-->
<!-- !	For Combat Spells:-->
<!-- !	$larg(2) = Target Type ('opp','pcs')-->
<!-- !	 ARGS[3] = Target party member number-->
<!-- !	 ARGS[4] = Caster party member number-->
<<set $SuccessValue = $location_var[$here][1]>>
<<set $SplTxtColGood = 'green'>>
<<set $SplTxtColBad = 'red'>>
<!-- ! ARGS for Combat Spells if Applicable-->
<<set $TargetType = $location_var[$here][2]>>
<<if $spellTarget[$location_var[$here][2]] == 'self'>>
	<!-- ! Self target spell, Caster and target are the same-->
	<<set $CasterType = $TargetType>>
	<<set $TargetNumber = $larg(3)>>
	<<set $CasterNumber = $larg(3)>>
<<elseif $spellTarget[$location_var[$here][2]] == 'team'>>
	<!-- ! Team target spell targets person on the same team-->
	<<set $CasterType = $TargetType>>
	<<set $TargetNumber = $larg(3)>>
	<<set $CasterNumber = $larg(4)>>
<<else>>
	<!-- ! Others are assumed to be enemy targets-->
	<<if $TargetType == 'pcs'>>
		<<if $location_var[$here][0] == 'heal' OR $larg(0)>>
			<<set $CasterType = 'pcs'>>
			<<set $SplTxtColGood = 'green'>>
			<<set $SplTxtColBad = 'red'>>
		<<else>>
			<<set $CasterType = 'opp'>>
			<<set $SplTxtColGood = 'red'>>
			<<set $SplTxtColBad = 'green'>>
		<</if>>
	<<elseif $TargetType == 'opp'>>
		<<set $CasterType = 'pcs'>>
	<<else>>
		<<set $CasterType = 'pcs'>>
		<<set $TargetType = 'pcs'>>
	<</if>>
	<<set $TargetNumber = $larg(3)>>
	<<set $CasterNumber = $larg(4)>>
<</if>>
<!-- !! Helper functions.-->
<!-- !! UpdateAttrib-->
<!-- !   Apply change to Combatant array-->
<!-- ! $larg(0) = the base array (e.g.: fog, clone, shield, init)-->
<!-- ! $larg(1) = the Target type (e.g.: pcs or opp)-->
<!-- ! ARGS[2]  = Target Number, array number of target-->
<!-- ! $larg(3) = operation (e.g.: +, -, =)-->
<!-- ! ARGS[4]  = Amount to change-->
<!-- !!GetCombatantName-->
<!-- !	Get the Name value for this combatant-->
<!-- ! $larg(0) = the Target type (e.g.: pcs or opp)-->
<!-- ! ARGS[1]  = Target Number, array number of target-->
<!-- !!ApplyDamageToAll-->
<!-- !	Apply some damage to all participants fo a given type-->
<!-- ! $larg(0) = the Target type (e.g.: pcs or opp)-->
<!-- ! ARGS[1]  = Amount of damage-->
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<!-- !!  SPELLS-->
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-->
<<if $location_var[$here][0] == 'teleport'>>
	<!-- ! Do the stuff of a Teleport-->
	<!-- !	ARGS[1] = Success/Failure level-->
	<!-- !	ARGS[2] = the Target Location-->
	<<set $NewLocation = $location_var[$here][2]>>
	<<warn 'JUMP MARKER ENCOUNTERED: :RandLocLoop'>>
	<<set $randomLoc = $tpLocations[rand(0,arrsize('$tpLocations') - 1)]>>
	<<if $randomLoc == $NewLocation or $randomLoc == $EntryPoint>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump RandLocLoop'>>
	<</if>>
	<<if getvar("$SuccessValue") > 0>>
		"The blur you see just outside the ring seems to shift."
		<<wait 1000>>
		<<if $treeCircArg[$NewLocation] == "">>
			<<gt $treeCircLoc[$NewLocation]>>
		<<else>>
			<<gt $treeCircLoc[$NewLocation] $treeCircArg[$NewLocation]>>
		<</if>>
	<<elseif getvar("$SuccessValue") < 0>>
		"The blur you see just outside the ring seems to shift. Something did not go right!"
		<<wait 1000>>
		<<if $treeCircArg[$randomLoc] == "">>
			<<gt $treeCircLoc[$randomLoc]>>
		<<else>>
			<<gt $treeCircLoc[$randomLoc] $treeCircArg[$randomLoc]>>
		<</if>>
	<<else>>
		You feel drained, but the energy fizzles out and nothing happens
	<</if>>
	<<set $randomLoc to null>>
	<<set $NewLocation to null>>
	<<set $result = "">>
<</if>>
<<if $location_var[$here][0] == 'regenerate'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! How much health is gained per minute-->
		<<set $regenVal = 5 * $SuccessValue>>
		<!-- ! Immediate health gain-->
		<<set $pc.pcs_health += $regenVal>>
		<!-- ! If Regenerate is already running, we only extend.-->
		<<set $regenArrIdx = arrpos('$spellTimeName','regenerate')>>
		<<if getvar("$regenArrIdx") > -1>>
			<!-- ! if it's found, then update only-->
			<<setinit $spellComplete[$regenArrIdx] = $time.minutesTimestamp+ 120>>
			<!-- FAILED TO CONVERT
				$spellCompExec[regenArrIdx] = 'pcs_health += (5 * <<regenVal>>)'
			-----
				<<setinit $spellCompExec[$regenArrIdx] = 'pcs_health += (5 * ERROR: FAILED TO CONVERT LITERAL: """<<regenVal>>""")'>>

			-->
			<<warn "CONVERSION ERROR dd0ff288e1b3d377910430921100f835">>
			<<setinit $spellTickExec[$regenArrIdx] = 'pcs_health += regenVal'>>
		<<else>>
			<!-- ! Add Timer:-->
			<!-- !	spellName = 'regenerate'-->
			<!-- !	duration  = 120-->
			<!-- !	CompCode = 'pcs_health += (5 * <<regenVal>>)'-->
			<!-- !	TickCode = 'pcs_health += <<regenVal>>'-->
			<!-- FAILED TO CONVERT
				gs 'spellTimer', 'add', 'regenerate', 120, 'pcs_health += (5 * <<regenVal>>)', 'pcs_health += <<regenVal>>'
			-----
				<<set gs 'spellTimer' , 'add' , 'regenerate' , 120 , 'pcs_health += (5 * ERROR: FAILED TO CONVERT LITERAL: """<<regenVal>>""")' , 'pcs_health + ERROR: FAILED TO CONVERT LITERAL: """= <<regenVal>>'""">>

			-->
			<<warn "CONVERSION ERROR 8e6cee74e86ab57277fbd36b8eb14464">>
		<</if>>
		<<msg '<b><font color = <<$SplTxtColGood>>>Your body surges with life. You feel better already.</font></b>'>>
		<<set $regenVal to null>>
		<<set $regenArrIdx to null>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'painblock'>>
	<<if getvar("$SuccessValue") > 0>>
		<<run $pc.painSet('killer',1)>>
		<<msg '<b><font color = <<$SplTxtColGood>>>Your pain recedes into a dull throb.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'curedisease'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Cure Diseses-->
		<<cheatmenu['std_cure']>>
		<!-- ! Cause pain where diseases burned out-->
		<<run $pc.painInc('head','',10)>>
		<<run $pc.painInc('nose','',10)>>
		<<run $pc.painInc('mouth','',10)>>
		<<run $pc.painInc('lips','',10)>>
		<<run $pc.painInc('throat','',10)>>
		<<run $pc.painInc('asshole','',10)>>
		<<run $pc.painInc('chest','',10)>>
		<<run $pc.painInc('tummy','',10)>>
		<<run $pc.painInc('urethra','',10)>>
		<<run $pc.painInc('vaginal','',10)>>
		<!-- ! You do not feel good-->
		<<set $pc.mood -= 30>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You burst into a high fever. You feel terrible, but you know you are now healthy.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'curewounds'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Remove some pain-->
		<<gs 'medical_din' 'healthTreatment'>>
		<<gs 'medical_din' 'healthTreatment'>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel yourself coursing with life. You feel better already.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'curewounds2'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Remove all pain-->
		<<set $pain to null>>
		<<set $pc.vgape to null>>
		<<set $pc.agape to null>>
		<<set $pc.spanked to null>>
		<<set $pc.spankedtime to null>>
		<<set $pc.pcs_health = $pc.vitality * 10 + $pc.skillLevel("strength") * 5 + 1000>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel yourself coursing with life. All pain is gone.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'berserk'>>
	<<if getvar("$SuccessValue") > 0>>
		<<set $spellArrIdx = arrpos('$spellTimeName','berserk')>>
		<<run $pc.painSet('killer',1)>>
		<<if getvar("$spellArrIdx") > -1>>
			<!-- ! if it's found, then update only-->
			<<setinit $spellComplete[$spellArrIdx] = $time.minutesTimestamp+ 120>>
		<<else>>
			<!-- ! Save current Health percentage, since changing these stats will change healthmax-->
			<<set $healthPercent = $pc.pcs_health * 100 / $pc.healthmax>>
			<<set $staminPercent = $pc.pcs_stam * 100 / $pc.stammax>>
			<!-- ! Boost Stats-->
			<<set $stren_lvl += 200>>
			<<set $stren_lvlst += 200>>
			<<set $stren_muta += 4>>
			<<set $agil_lvl += 200>>
			<<set $agil_lvlst += 200>>
			<<set $agil_muta += 4>>
			<<set $vital_lvl += 200>>
			<<set $vital_lvlst += 200>>
			<<set $vital_muta += 4>>
			<!-- !gs 'stat_sklattrib'-->
			<!-- ! Run stats to recalculate max health-->
			<!-- ! Update health to be appropiate percentage of new healthmax-->
			<<set $pc.pcs_health = ($healthPercent * $pc.healthmax / 100) + 1>>
			<<set $pc.pcs_stam = ($staminPercent * $pc.stammax) + 1>>
			<!-- ! Add Timer to remove this effect after tiem period-->
			<<gs 'spellTimer' 'add' 'berserk' 120 $berserkCode ''>>
		<</if>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel a huge adrenalin surge. You begin looking for someone to battle.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
	<<set $spellArrIdx to null>>
	<<set $berserkCode to null>>
	<<set $healthPercent to null>>
	<<set $staminPercent to null>>
<</if>>
<<if $location_var[$here][0] == 'shower'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Take a Shower-->
		<<gs 'cum_cleanup'>>
		<<setinit $lactation['lactmess'] = 0>>
		<<set $pc.pcs_sweat = 10>>
		<!-- ! Brush Teeth-->
		<<set $pc.pcs_breath = 1>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel clean and refreshed.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'glamour'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Add large bonus to appearance.-->
		<<set $pc.pcs_apprncbase += 150>>
		<!-- ! Add Timer to remove Appearance bonus after 2 hours-->
		<!-- !	spellName = 'glamour'-->
		<!-- !	duration  = 120-->
		<!-- !	CompCode = 'pcs_apprncbase -= 150' Remove bonus-->
		<!-- !	TickCode = ''  Do nothing-->
		<<set gs 'spellTimer' , 'add' , 'glamour' , 120 , 'pcs_apprncbase -= 150' , ''>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel gorgeous. People will love you.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'alterself'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Stop Reputation accumulation.-->
		<!-- !TODO-->
		<<msg '<b><font color = <<$SplTxtColGood>>>Your features change. Your own mother wouldn""t recognize you.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'makeup'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Argument should be 3 digit string representing Makeup to apply-->
		<<set $MakeupArg = $location_var[$here][2]>>
		<<if $MakeupArg == ''>>
			<<set $MakeupArg = '210'>>

		<</if>>
		<!-- ! Arg[0] = Makeup Amount (0-4)-->
		<<setinit $MakeupArg[0] = val(mid($MakeupArg,1,1))>>
		<!-- ! Arg[1] = Lip Balm application (0-1)-->
		<<setinit $MakeupArg[1] = val(mid($MakeupArg,2,1))>>
		<!-- ! Arg[2] = False lash Application (0-2)-->
		<<setinit $MakeupArg[2] = val(mid($MakeupArg,3,1))>>
		<!-- ! Brush hair-->
		<<set $pc.pcs_hairbsh = 1>>
		<!-- ! Apply Makeup the +1 to avoid ruined makeup-->
		<<set $pc.pcs_makeup = $MakeupArg[0] + 1>>
		<!-- ! Apply Lipbalm-->
		<<set $pc.pcs_lipbalm += 8 * $MakeupArg[1]>>
		<!-- ! Apply False Lashes-->
		<<if $MakeupArg[2] == 1 and $pc.eyelashes < 3>>
			<<set $pc.eyelashes = 3>>
		<<elseif $MakeupArg[2] == 2 and $pc.eyelashes < 4>>
			<<set $pc.eyelashes = 4>>
		<</if>>
		<<set $MakeupArg to null>>
		<<set $MakeupArg to null>>
		<<msg '<b><font color = <<$SplTxtColGood>>>Makeup is applied to your face.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'cosmetica'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- ! Take a Shower-->
		<<gs 'cum_cleanup'>>
		<<setinit $lactation['lactmess'] = 0>>
		<<set $pc.pcs_sweat = 10>>
		<!-- ! Brush Teeth-->
		<<set $pc.pcs_breath = 1>>
		<!-- ! Remove graffiti from self-->
		<<set $pc.body_write = 0>>
		<<set $face_write = 0>>
		<!-- ! Enema-->
		<<set $klismaday = $time.daystart>>
		<<set $klismaday1 = 1>>
		<!-- ! Brush hair-->
		<<set $pc.pcs_hairbsh = 1>>
		<!-- ! Apply Makeup-->
		<<set $pc.pcs_makeup = 3>>
		<!-- !if shave_menu = 0:nothing-->
		<!-- !if shave_menu = 1:legs and pussy-->
		<!-- !if shave_menu = 2:pussy only-->
		<!-- !if shave_menu = 3:legs only-->
		<<if getvar("$shave_menu") == 1 or getvar("$shave_menu") == 3>>
			<!-- ! Shave Legs-->
			<<set $pc.legHair = 0>>
		<</if>>
		<<if getvar("$shave_menu") == 1 or getvar("$shave_menu") == 2>>
			<!-- ! Shave Pubes-->
			<<if $pc.pubestyle == 1>>
				<<set $pc.pubesLength = 1>>
			<<elseif ($pc.pubestyle >= 2 and $pc.pubestyle <= 9) or $pc.pubestyle >= 12>>
				<<set $pc.pubesLength = 16>>
			<<elseif $pc.pubestyle == 10 and $pc.pubesLength > 29>>
				<<set $pc.pubesLength = 26>>
			<<elseif $pc.pubestyle == 11 and $pc.pubesLength > 10>>
				<<set $pc.pubesLength = 0>>
			<</if>>
		<</if>>
		<<msg '<b><font color = <<$SplTxtColGood>>>You feel beautiful.</font></b>'>>
	<<else>>
		<<msg '<b><font color="red">The spell fizzles. Nothing seems to happen.</b>'>>
	<</if>>
<</if>>
<!-- !!!!!!!!!!!!!!!!!-->
<!-- !! Combat Spells-->
<!-- !!!!!!!!!!!!!!!!!-->
<<if $location_var[$here][0] == 'fog'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'fog'  $TargetType  TargetNumber  '+'  10 * SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>A Fog materializes around, obscuring <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> from enemies.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'clone'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'clone'  $TargetType  TargetNumber  '+'  SuccessValue>>
		<b><font color = <<$SplTxtColGood>>><<SuccessValue>> clone<<iif(SuccessValue>1,"s","")>> springs from <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> confusing enemies.</font></b>
	<<elseif getvar("$SuccessValue") < 0 and dyneval('$result =<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
		<<spellFunc['UpdateAttrib']  'clone'  $TargetType  TargetNumber  '-'  1>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! A <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> clone disappears.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'stun'>>
	<<if getvar("$SuccessValue") > 0>>
		<<set $stunner = 1>>
		<<spellFunc['UpdateAttrib']  'stun'  $TargetType  TargetNumber  '+'  rand(2 5)+ SuccessValue>>
		<b><font color = <<$SplTxtColGood>>><<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> is stunned.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'weapon'>>
	<!-- !{if SuccessValue > 0:
	magweapbonus = weapbonus * 4 * SuccessValue
	'<b><font color = <<$SplTxtColGood>>>Your weapon now feels more powerful.</font></b>'
	elseif SuccessValue < 0:
	magweapbonus = weapbonus * -1
	'<b><font color = <<$SplTxtColBad>>>The spell backfires! Your weapon seems weaker.</font></b>'
	else
	'<b>The spell fizzles. Nothing seems to happen.</b>'
	end
	} -->
	"weapon"
<</if>>
<<if $location_var[$here][0] == 'wind'>>
	<<if getvar("$SuccessValue") == 2>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $TargetType , $TargetNumber ,  =  , 0>>
		<b><font color = <<$SplTxtColGood>>>A wind blows through the area, eliminating the fog around <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> from the battlefield.</font></b>
	<<elseif getvar("$SuccessValue") == 1>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $TargetType , $TargetNumber ,  =  , 0>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $CasterType , $CasterNumber ,  =  , 0>>
		<b><font color = <<$SplTxtColGood>>>A wind blows through the area, eliminating all fog on the battlefield.</font></b>
	<<elseif getvar("$SuccessValue") == -1>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $CasterType , $CasterNumber ,  =  , 0>>
		<b><font color = <<$SplTxtColBad>>>A wind blows through the area, eliminating the fog around <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> from the battlefield.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'multiclone'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'clone'  $TargetType  TargetNumber  '+'  SuccessValue * 3>>
		<b><font color = <<$SplTxtColGood>>><<SuccessValue * 3>> clone<<iif(SuccessValue>1,"s","")>> of <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> springs forth, confusing the enemy.</font></b>
	<<elseif getvar("$SuccessValue") < 0 and getvar("$klon") > 0>>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') < 3>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
		<<else>>
			<<spellFunc['UpdateAttrib']  'clone'  $TargetType  TargetNumber  '-'  3>>
		<</if>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! Some clones of <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> disappear.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'energo'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 100>>
		<b><font color = <<$SplTxtColGood>>>An energy shield materializes around <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>>, granting protection from enemies.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'haste'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'init'  $TargetType  TargetNumber  '+'  SuccessValue * 120>>
		<b><font color = <<$SplTxtColGood>>><<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> feel mind and body race though a sluggish world.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'heal'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'health'  $TargetType  TargetNumber  '+'  SuccessValue * 400>>
		<<if getvar("$menu_off") == 0>>
			<<msg '<b><font color = <<$SplTxtColGood>>><<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> surge with life, feeling much stronger.</font></b>'>>
		<<else>>
			<b><font color = <<$SplTxtColGood>>><<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>> surge with life, feeling much stronger.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'hand'>>
	<<if getvar("$SuccessValue") > 0>>
		<!-- FAILED TO CONVERT
			TargetStren = dyneval('result=<<$TargetType>>_stren[<<TargetNumber>>]')
		-----
			<<set $TargetStren = dyneval('result=<<$TargetType>>_stren[ERROR: FAILED TO CONVERT LITERAL: """<<TargetNumber>>"""]')>>

		-->
		<<warn "CONVERSION ERROR 511d5eb72bd6500e5f3dd11677fc227f">>
		<<set $TargetStrenDelta = $TargetStren * 20 * $SuccessValue / 100>>
		<<set $TargetStrenBase = $TargetStren * 10>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'stren' , $TargetType , $TargetNumber ,  = ', RAND(TargetStrenBase - TargetStrenDelta,TargetStrenBase + TargetStrenDelta)>>
		<b><font color = <<$SplTxtColGood>>>Power flows from the hands of <<dyneval($spellFunc["GetCombatantName"], $TargetType, TargetNumber)>>.</font></b>
		<<set $TargetStren to null>>
		<<set $TargetStrenDelta to null>>
		<<set $TargetStrenBase to null>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'scaldingtouch'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>Flames spring from your hands.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'burninghands'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 250 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>A torrent of flames jets from your hands.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'firebarrier'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 200>>
		<b><font color = <<$SplTxtColGood>>>A flaming barrier springs up between you and your opponents.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'firestorm'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['ApplyDamageToAll']  $TargetType  (200 * SuccessValue)>>
		<b><font color = <<$SplTxtColGood>>>Uncountable glowing embers streak down upon the foes of <<dyneval($spellFunc["GetCombatantName"], $CasterType, CasterNumber)>>.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<spellFunc['ApplyDamageToAll']  $TargetType  200>>
		<<spellFunc['ApplyDamageToAll']  $CasterType  100>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! Uncountable glowing embers streak down upon the battlefield, burning everyone.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'flameshield'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 250>>
		<b><font color = <<$SplTxtColGood>>>A Shield made of flames interposes itself between <<dyneval($spellFunc["GetCombatantName"], $CasterType, CasterNumber)>> and the enemy.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'shock'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>You build a static electric charge in your hand and zap your opponent.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 50>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! You manage to zap yourself with a static charge.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'lightning'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 200 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>You shoot a lightning bolt from your hand, zapping your opponent.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 100>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! You manage to zap yourself with lightning.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'electricbarrier'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 250>>
		<b><font color = <<$SplTxtColGood>>>A wall of dancing lightning springs up around yourself.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == '1000birds'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['ApplyDamageToAll']  $TargetType  (100 * SuccessValue)>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber (100 * SuccessValue)>>
		<b><font color = <<$SplTxtColGood>>>You shoot hundreds of small lightning bolts toward your enemy.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<spellFunc['ApplyDamageToAll']  $TargetType  100>>
		<<spellFunc['ApplyDamageToAll']  $CasterType  100>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! Hundreds of small lightning bolts curl toward the battlefield, shocking everyone.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'dancingsphere'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 500>>
		<b><font color = <<$SplTxtColGood>>>A large field of lightning dances around you, blocking attacks.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'quicksand'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>You trap your opponent in quicksand.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 50>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! You are both trapped in quicksand.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'earthshield'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 100 + 250>>
		<b><font color = <<$SplTxtColGood>>>Tendrils of earth rise to defend you.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'abyss'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 250 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>The Earth opens up beneath your opponent''s feet, slamming shut damaging him and depriving him of the ability to move.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 250>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 200>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! The Earth opens up beneath your opponent''s feet, slamming shut damaging him and depriving him of the ability to move. You are also caught.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'earthguardian'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 500>>
		<b><font color = <<$SplTxtColGood>>>The Earth itself comes alive defending you from attacks. It draws from the power of the land to regenerate itself every round. You now have <<defence>> protection units.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'sando'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber (250 * SuccessValue)>>
		<b><font color = <<$SplTxtColGood>>>Two huge plates of earth collapse together, crushing the enemy and depriving him of the ability to move.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 50>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! Two huge plates of earth collapse together with crushing force, but the enemy is missed and you are instead caught.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'windgust'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>You create a gust of wind.</font></b>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy clones are vaporized.</font></b>
		<</if>>
		<<if dyneval('result=<<$TargetType>>_fog[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy fog is torn to shreds by the wind.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'pressure'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 200 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>You dramatically raise the air pressure.</font></b>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy clones are vaporized.</font></b>
		<</if>>
		<<if dyneval('result=<<$TargetType>>_fog[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy fog is torn to shreds by the wind.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'vacuum'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  SuccessValue * 250>>
		<b><font color = <<$SplTxtColGood>>>A turbulent sphere of vacuum surrounds you, blocking incoming attacks. You now have <<defence>> protection units.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'vacuumshells'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 250 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>Turbulent spheres of vacuum bombard your enemy. The air is full of whistling sounds as the spheres fly by at high speeds over the battlefield.</font></b>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy clones are vaporized.</font></b>
		<</if>>
		<<if dyneval('result=<<$TargetType>>_fog[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'fog' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy fog is torn to shreds by the wind.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'devouringvacuum'>>
	<<if getvar("$SuccessValue") > 0>>
		<<set dynamic $spellFunc['UpdateAttrib'] , 'shield' , $TargetType , $TargetNumber ,  =  , 0>>
		<b><font color = <<$SplTxtColGood>>>A devouring vacuum sucks away your enemy''s defenses.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'leechmana'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 100>>
		<<set $damTipM = 1000>>
		<<spellFunc['UpdateAttrib']  'mana'  $CasterType  CasterNumber  '+'  100>>
		<b><font color = <<$SplTxtColGood>>>You leech mana from your enemy.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 50>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! Ouch!</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'flood'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 200 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>A surge of water rises towards your enemy.</font></b>
	<<elseif getvar("$SuccessValue") < 0>>
		<<gs 'fight' 'applyDamage' $CasterType $CasterNumber 100>>
		<b><font color = <<$SplTxtColBad>>>The spell backfires! A surge of water rises towards your enemy, but misses and hits you.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'blister'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  500>>
		<b><font color = <<$SplTxtColGood>>>A protective sphere of water surrounds you.</font></b>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'sharkrockets'>>
	<<if getvar("$SuccessValue") > 0>>
		<<gs 'fight' 'applyDamage' $TargetType $TargetNumber 150 * $SuccessValue>>
		<b><font color = <<$SplTxtColGood>>>Blobs of water shaped like sharks fly towards your enemy, striking them.</font></b>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy clones are vaporized.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<if $location_var[$here][0] == 'greatflood'>>
	<<if getvar("$SuccessValue") > 0>>
		<<spellFunc['UpdateAttrib']  'shield'  $TargetType  TargetNumber  '+'  1000>>
		<b><font color = <<$SplTxtColGood>>>You have filled the whole neighborhood with water, protecting you and devouring enemy mana.</font></b>
		<<if dyneval('result=<<$TargetType>>_clone[<<TargetNumber>>]') > 0>>
			<<set dynamic $spellFunc['UpdateAttrib'] , 'clone' , $TargetType , $TargetNumber ,  =  , 0>>
			<b><font color = <<$SplTxtColGood>>>Enemy clones are vaporized.</font></b>
		<</if>>
	<<else>>
		<b>The spell fizzles. Nothing seems to happen.</b>
	<</if>>
<</if>>
<<set $SuccessValue to null>>
<<set $TargetType to null>>
<<set $TargetNumber to null>>
<<set $CasterType to null>>
<<set $CasterNumber to null>>
:: spellFuncUpdateAttrib_macro[widget]
<<widget 'spellFuncUpdateAttrib'>>
	<<setinit $SpellFuncVar['BaseArray'] = _args[0]>>
	<<setinit $SpellFuncVar['TargetType'] = _args[1]>>
	<<setinit $SpellFuncVar['TargetNum'] = _args[2]>>
	<<setinit $SpellFuncVar['Operation'] = _args[3]>>
	<<setinit $SpellFuncVar['Amount'] = _args[4]>>
	<<if $SpellFuncVar['Operation'] == >>
		<!-- !       "opp_fog[0] = 0"-->
		<!-- FAILED TO CONVERT
		dynamic "<<$SpellFuncVar['TargetType']>>_<<$SpellFuncVar['BaseArray']>>[<<SpellFuncVar['TargetNum']>>] = <<SpellFuncVar['Amount']>>"
	-----
		<<set dynamic "$SpellFuncVar['TargetType']_$SpellFuncVar['BaseArray'][$ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['TargetNum']>>"""] = ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['Amount']>>"""">>

	-->
	<<warn "CONVERSION ERROR 5a2d36d0e7b0f60fd2f3c2bd37869dfa">>
	<<elseif $SpellFuncVar['Operation'] == '+' or $SpellFuncVar['Operation'] == '-'>>
		<!-- !       "opp_fog[0] += 10"-->
		<!-- FAILED TO CONVERT
		dynamic "<<$SpellFuncVar['TargetType']>>_<<$SpellFuncVar['BaseArray']>>[<<SpellFuncVar['TargetNum']>>] <<$SpellFuncVar['Operation']>>= <<SpellFuncVar['Amount']>>"
	-----
		<<set dynamic "$SpellFuncVar['TargetType']_$SpellFuncVar['BaseArray'][$ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['TargetNum']>>"""] $SpellFuncVar['Operation'] = ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['Amount']>>"""">>

	-->
	<<warn "CONVERSION ERROR ed8bfc6b6244eb5624997c915f405287">>
	<<else>>
		<<set 'Invalid Operator , must be " + ", " - ", or " = ".  '>>
	<</if>>
	<<set $SpellFuncVar to null>>
	<<set $SpellFuncVar to null>>
<</widget>>
:: spellFuncGetCombatantName_macro[widget]
<<widget 'spellFuncGetCombatantName'>>
	<<setinit $SpellFuncVar['TargetType'] = _args[0]>>
	<<setinit $SpellFuncVar['TargetNum'] = _args[1]>>
	<!-- FAILED TO CONVERT
	$result = dyneval("$result = $<<$SpellFuncVar['TargetType']>>_name[<<SpellFuncVar['TargetNum']>>]")
-----
	<<set $result = dyneval("$result = $<<$SpellFuncVar['TargetType']>>_name[ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['TargetNum']>>"""]")>>

-->
<<warn "CONVERSION ERROR cb19b83a55e58eb25e5775dddb007e7e">>
	<<set $SpellFuncVar to null>>
	<<set $SpellFuncVar to null>>
<</widget>>
:: spellFuncApplyDamageToAll_macro[widget]
<<widget 'spellFuncApplyDamageToAll'>>
	<<setinit $SpellFuncVar['TargetType'] = _args[0]>>
	<<setinit $SpellFuncVar['Damage'] = _args[1]>>
	dynamic "
	<<set $i = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :DamageAllLoop1'>>
	<<if $i < arrsize('>>
		<!-- FAILED TO CONVERT
		gs 'fight', 'applyDamage', '<<$SpellFuncVar['TargetType']>>', i, <<SpellFuncVar['Damage']>>
	-----
		<<gs 'fight' 'applyDamage' '$SpellFuncVar['TargetType']' $i ERROR: FAILED TO CONVERT LITERAL: """<<SpellFuncVar['Damage']>>""">>

	-->
	<<warn "CONVERSION ERROR ec237737e5b472b43b2c5537192b1a09">>
		<<set $i += 1>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump DamageAllLoop1'>>
	<</if>>
	<<set $i to null>>
	<<set $SpellFuncVar to null>>
	<<set $SpellFuncVar to null>>
<</widget>>
:: berserkCode_macro[widget]
<<widget 'berserkCode'>>
	<!-- ! Return Stats to normal-->
	<<set $stren_lvl -= 200>>
	<<set $stren_lvlst -= 200>>
	<<set $stren_muta -= 4>>
	<<set $agil_lvl -= 200>>
	<<set $agil_lvlst -= 200>>
	<<set $agil_muta -= 4>>
	<<set $vital_lvl -= 200>>
	<<set $vital_lvlst -= 200>>
	<<set $vital_muta -= 4>>
<</widget>>
