<data>
	<effects>
	 	<!-- POWER PERMANENT EFFECT -->
	 	<effectTemplate r_name="'permanentTickEffectTemplate'" r_template="'mainDurableEffectTemplate'"
									 	endTime="-(r_tickDuration+1)" 
					 					r_tickCount="3">
			<effect r_name="'tickEffect'" r_enabled="rw_tickIndex!=2">
			 	<effect r_name="'renewTick'" r_template="'evaluationEffect'" r_effect="rw_tickIndex=0"/>
			</effect>			
		</effectTemplate>
	 					
	 	<effect r_name="'restorationEffect'" r_template="{'mainSelfEffectTemplate','permanentTickEffectTemplate'}"
	 					r_enabled="exists(world.currentDungeon)&&world.currentDungeon.w_dungeonLoaded"
	 					effectTags="{'noDispel'}"
	 					restorationValue="1"
						maxRegenValue="exhaustion">
			<effect r_name="'tickEffect'">
				<effect r_name="'restorationTick'" r_template="'basicRestoreSelf'" r_enabled="maxRegenValue>fatigue" fatigueAmount="restorationValue"/>
			</effect>
		</effect>
		
	 	<effect r_name="'regenerationEffect'" r_template="{'mainSelfEffectTemplate','permanentTickEffectTemplate'}"
	 					r_enabled="exists(world.currentDungeon)&&world.currentDungeon.w_dungeonLoaded"
	 					effectTags="{'noDispel'}"
	 					regenerationValue="1"
						maxRegenValue="maxHitPoints">
		 	<effect r_name="'tickEffect'">
		 		<effect r_name="'regenerationTick'" r_template="'basicHealSelf'" r_enabled="maxRegenValue>hitPoints" healAmount="regenerationValue"/>
			</effect>
		</effect>
	 	
		<effect r_name="'fireCloudEffect'" r_template="{'mainTargetEffectTemplate','permanentTickEffectTemplate'}"
						r_graphic="'fire_on.png'"
						r_effectName="text.powerFireCloud"
						recastRule="'fail'"
						effectTags="{'noDispel','fireCloud'}">
			<effect r_name="'tickEffect'">
			 	<effect r_name="'damage'" r_template="'powerPhysicalDamageEffect'"
			 					r_enabled="target.square.canActivate('fireCloud')"
								actionLogMethod="'logEffectWithDamage'"
			 					roll="0"/>
				<effect r_name="'dispelIfNoCloud'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_enabled="!target.square.canActivate('fireCloud')"
								r_className="'CctlEffectRemoveDurable'"
								r_condition="contains(targetEffect.effectTags,'fireCloud')"/>
			</effect>
		</effect>
					
		<!-- POWER SPECIFIC INSTANT EFFECTS --> 
		<effectTemplate r_name="'pushEffect'" r_template="{'mainSelfEffectTemplate','multiEffect'}"
										r_effectName="text.effectNamePush"
										distance="1"
										resultingPushDistance="0"
										recursivePush="0"
										pushXDirection="(targetSquare.w_xCoord>actor.w_xCoord)?1:((actor.w_xCoord>targetSquare.w_xCoord)?(-1):0)"
										pushYDirection="(targetSquare.w_yCoord>actor.w_yCoord)?1:((actor.w_yCoord>targetSquare.w_yCoord)?(-1):0)">
			<effect r_name="'recursivePush'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
							r_enabled="recursivePush"
							r_className="'CctlEffectLaunchAction'"
							r_effectName="'pushEffect'"
							r_newActor="'actor'"
							r_newTarget="'targetSquare'"
							rw_xTarget="target.w_xCoord+pushXDirection*distance"
							rw_yTarget="target.w_yCoord+pushYDirection*distance"
							r_newActionType="'library'"
							r_newActionName="'pushAction'"
							r_delayRequest="0"
							r_params="{{'xDirection',pushXDirection},{'yDirection',pushYDirection},{'distance',1}}"/>
			<effect r_name="'impactEffect'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
							r_className="'CctlEffectTeleportation'"
							r_targetLevelIndex="target.w_levelIndex"
							rw_xTarget="target.w_xCoord+pushXDirection*distance"
							rw_yTarget="target.w_yCoord+pushYDirection*distance"
							r_walkSimulation="1"
							w_crossedSquare="0">
				<modifier r_name="'resultingPushDistance'" r_template="'mainModifierTemplate'" r_modifierTarget="'resultingPushDistance'" r_modifiedValue="w_crossedSquare"/>
			</effect>
			<effect r_name="'log'" r_template="'logDebuffEffect'"
							r_enabled="distance==resultingPushDistance"/>
			<effect r_name="'additionalDamage'" r_template="'mainPhysicalDamageEffect'"
							r_enabled="distance>resultingPushDistance"
							offensiveDamageBonus="5*(distance-resultingPushDistance)"
							actionLogMethod="'logAdditionalDamage'"/>
		</effectTemplate>
									 
		
		<effectTemplate r_name="'launchActionProcEffect'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
										r_className="'CctlEffectLaunchAction'"
										r_newActor="'actor'"
										r_newTarget="'target'"
										r_newActionType="powerActionType"
										r_newActionName="powerActionNamed"
										r_delayRequest="0"
										r_params="procParams"/>

		<effectTemplate r_name="'rangedAEAttack'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
										r_className="'CctlEffectLaunchAreaEffect'"
										r_area="{'circle',targetSquare.w_xCoord,targetSquare.w_yCoord,1,1}"
										r_areaTargetingType="'direct'">
			<effect r_name="'strikeRanged'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
							r_enabled="exists(target)"
							r_className="'CctlEffectLaunchAction'"
							r_newActor="'actor'"
							r_newTarget="'target'"
							r_newActionType="'equippedItem'"
							r_newActionName="'ranged'"
							r_delayRequest="0"
							r_params="{{'isFree',1},{'r_targetingType','all'},{'r_range',99}}"/>
		</effectTemplate>
		
		<effectTemplate r_name="'holyWeaponEffect'" r_template="'powerPhysicalDamageEffect'"
										r_effectName="text.effectNameHolyWeapon"
										actionLogMethod="'logAdditionalDamage'"/>
										
		<effectTemplate r_name="'disruptEvilAttack'" r_template="'physicalAttackWithEffectTemplate'"
										onHitEffectTemplate="'disruptEvilEffect'"/>
		<effectTemplate r_name="'disruptEvilEffect'" r_template="{'mainSelfEffectTemplate','multiEffect'}">
			<effect r_name="'log'" r_template="'logPowerWithEffect'" r_effectName="'Disrupt Evil'"/>
			<effect r_name="'disruptEvil'" r_template="{'mainSelfEffectTemplate','evaluationEffect'}" r_effect="target.isDead=1"/>
		</effectTemplate>
		
		<effectTemplate r_name="'fireMarkEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="fireMarkPower"
										r_graphic="'FireMark.png'"
										r_effectName="text.effectNameFireMark"
										r_tickDuration="100"
										r_tickCount="5"
										rw_charge="1"
										recastRule="'resetTickIndex'"
										actionLogMethod="'logDebuffEffect'">
		 	<effect r_name="'tickEffect'">
			 	<effect r_name="'damage'" r_template="'mainPhysicalDamageEffect'"
							 actionLogMethod="'logEffectWithDamage'"
							 offensiveDamageBonus="3+3*Fire"
							 roll="0"/>
		 	</effect>
		</effectTemplate>
	</effects>
</data>