<data>
	<effects>
		<!-- STUN -->								
		<effectTemplate r_name="'stunEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Stun')"
										r_graphic="'status_stun.png'"
										r_effectName="text.effectNameStun"
										effectTooltip="text.effectTooltipStun"
										effectTags="{'stun'}"
										r_tickDuration="50"
										r_tickCount="powerDuration/50+1"
										recastRule="powerRecastRule">
		 	<effect r_name="'startEffect'">
			 	<effect r_name="'createMargin'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectChangeCurrentTime'"
								r_newCurrentTime="target.rw_currentTime+1"/>
				<effect r_name="'fixTickCount'" r_template="{'mainTargetEffectTemplate','evaluationEffect'}" r_effect="r_tickCount=powerDuration/50+1"/> 
		 	</effect>
		 	<effect r_name="'tickEffect'" r_enabled="(r_tickCount-1)>rw_tickIndex">
			 	<effect r_name="'stun'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectChangeCurrentTime'"
								r_newCurrentTime="target.rw_currentTime+r_tickDuration"/>
		 	</effect>
		 	<effect r_name="'endEffect'">
			 	<effect r_name="'closeMargin'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectChangeCurrentTime'"
								r_newCurrentTime="target.rw_currentTime-1"/>
		 	</effect>
			<modifier r_name="'Stuned'" r_template="'mainEffectModifier'" r_modifierTarget="'target.stuned'" r_modifiedValue="1"/>
	 	</effectTemplate>
	 	
		<!-- MEMERIZE -->								
		<effectTemplate r_name="'mesmerizeEffect'" r_template="'stunEffect'"
										r_enabled="!contains(target.immunities,'Mesmerize')"
										r_graphic="'status_mesmerize.png'"
										r_effectName="text.effectNameMesmerize"
										effectTooltip="text.effectTooltipMesmerize"
										effectTags="{'mesmerize'}">
	 		<event r_name="'breakOnDamage'" r_template="'mainEventTemplate'" r_enabled="w_launched" r_eventTarget="'target.hitPoints'" r_targetType="'attribute'">
				<effect r_name="'removeEffect'" r_template="{'mainTargetEffectTemplate','controllerEffect'}" r_enabled="w_oldValue>w_newValue" r_className="'CctlEffectRemoveDurable'" r_condition="contains(targetEffect.effectTags,'mesmerize')"/>
	 		</event>
		</effectTemplate>

		<!-- DAZED -->								
		<effectTemplate r_name="'dazeEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Daze')"
										r_graphic="'status_slow.png'"
										r_effectName="text.effectNameDaze"
										effectTooltip="text.effectTooltipDaze"
										effectTags="{'daze'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule"
										dazeValue="powerDazeValue">
			<modifier r_name="'ActionDelay'" r_template="'mainEffectModifier'" r_modifierTarget="'target.actionTimeCostMultiplier'" r_modifiedValue="$0*dazeValue"/>
			<modifier r_name="'Dazed'" r_template="'mainEffectModifier'" r_modifierTarget="'target.dazed'" r_modifiedValue="1"/>
	 	</effectTemplate>

		<!-- SLOW -->								
		<effectTemplate r_name="'slowEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Slow')"
										r_graphic="'status_snare.png'"
										r_effectName="text.effectNameSlow"
										effectTooltip="text.effectTooltipSlow"
										effectTags="{'slow'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule"
										slowValue="powerSlowValue">
			<modifier r_name="'MovementDelay'" r_template="'mainEffectModifier'" r_modifierTarget="'target.moveTimeCostMultiplier'" r_modifiedValue="$0*slowValue"/>
			<modifier r_name="'Slowed'" r_template="'mainEffectModifier'" r_modifierTarget="'target.slowed'" r_modifiedValue="1"/>
	 	</effectTemplate>

		<!-- ROOT -->								
		<effectTemplate r_name="'rootEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Root')"
										r_graphic="'status_root.png'"
										r_effectName="text.effectNameRoot"
										effectTooltip="text.effectTooltipRoot"
										effectTags="{'root'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'MovementRoot'" r_template="'mainEffectModifier'" r_modifierTarget="'target.canMove'" r_modifiedValue="0"/>
			<modifier r_name="'Rooted'" r_template="'mainEffectModifier'" r_modifierTarget="'target.rooted'" r_modifiedValue="1"/>
	 	</effectTemplate>

		<!-- SHAKEN -->								
		<effectTemplate r_name="'shakenEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Shaken')"
										r_graphic="'status_shake.png'"
										r_effectName="text.effectNameShaken"
										effectTooltip="text.effectTooltipShaken"
										effectTags="{'shaken'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'HitDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customCloseCombatHitBonus'" r_modifiedValue="$0-5"/>
			<modifier r_name="'DefenseDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customCloseCombatDefenseBonus'" r_modifiedValue="$0-5"/>
	 	</effectTemplate>

		<!-- Behavior status -->								
	 	<effectTemplate r_name="'behaviorEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										newBehavior="'ToBeReplaced'"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'behavior'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_behavior'" r_modifiedValue="(0==rw_tickIndex)?newBehavior:$0"/>
		 	<effect r_name="'startEffect'">
				<effect r_name="'updateBehavior'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectUpdateBehavior'"
								r_newBehavior="target.r_behavior"/>
			</effect>
		 	<effect r_name="'endEffect'">
				<effect r_name="'updateBehavior'" r_template="{'mainTargetEffectTemplate','controllerEffect'}"
								r_className="'CctlEffectUpdateBehavior'"
								r_newBehavior="target.r_behavior"/>
		 	</effect>
	 	</effectTemplate>

		<!-- CHARM -->								
		<effectTemplate r_name="'charmEffect'" r_template="'behaviorEffect'"
										r_enabled="!contains(target.immunities,'Charm')"
										r_graphic="'status_charm.png'"
										newBehavior="'behaviorOffensiveHeroFollowerTemplate'"
										r_effectName="text.effectNameCharmed"
										effectTooltip="text.effectTooltipCharmed"
										effectTags="{'charm'}">
			<modifier r_name="'faction'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_faction'" r_modifiedValue="actor.r_faction"/>
			<modifier r_name="'hostileFaction'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_hostileFaction'" r_modifiedValue="actor.r_hostileFaction"/>
			<modifier r_name="'allyFaction'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_allyFaction'" r_modifiedValue="actor.r_allyFaction"/>
	 	</effectTemplate>

		<!-- CONFUSE --> 
	 	<effectTemplate r_name="'confuseEffect'" r_template="'behaviorEffect'"
										r_enabled="!contains(target.immunities,'Confuse')"
										r_graphic="'status_confuse.png'"
										r_effectName="text.effectNameConfused"
										effectTooltip="text.effectTooltipConfused"
										effectTags="{'confuse'}"
										newBehavior="'behaviorConfused'"/>

		<!-- FURY -->								
	 	<effectTemplate r_name="'furyEffect'" r_template="'behaviorEffect'"
										r_enabled="!contains(target.immunities,'Fury')"
										r_graphic="'status_fury.png'"
										r_effectName="text.effectNameFury"
										effectTooltip="text.effectTooltipFury"
										effectTags="{'fury'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule"
										newBehavior="'furyCombat'">
			<modifier r_name="'enemies'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_hostileFaction'" r_modifiedValue="{1,1,1,1,1}"/>
			<modifier r_name="'autoAttacks'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_autoAttacks'" r_modifiedValue="{'standardCloseCombat'}"/>
	 	</effectTemplate>

		<!-- CURSE -->								
	 	<effectTemplate r_name="'curseEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Curse')"
										r_graphic="'status_curse.png'"
										r_effectName="text.effectNameCurse"
										effectTooltip="text.effectTooltipCurse"
										effectTags="{'curse'}"
										curseValue="powerCurseValue"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'customCloseCombatHitBonus'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customCloseCombatHitBonus'" r_modifiedValue="$0-curseValue"/>
			<modifier r_name="'customRangedHitBonus'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customRangedHitBonus'" r_modifiedValue="$0-curseValue"/>
			<modifier r_name="'Defense'" r_template="'mainEffectModifier'" r_modifierTarget="'target.Defense'" r_modifiedValue="$0-curseValue"/>
			<modifier r_name="'MentalResistance'" r_template="'mainEffectModifier'" r_modifierTarget="'target.MentalResistance'" r_modifiedValue="$0-curseValue"/>
			<modifier r_name="'PhysicalResistance'" r_template="'mainEffectModifier'" r_modifierTarget="'target.PhysicalResistance'" r_modifiedValue="$0-curseValue"/>
	 	</effectTemplate>

		<!-- CRIPPLING -->								
		<effectTemplate r_name="'cripplingEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Cripple')"
										r_graphic="'status_cripple.png'"
										effectTags="{'cripple'}"
										r_effectName="text.effectNameCrippled"
										effectTooltip="text.effectTooltipCrippled"
										r_tickDuration="powerDuration"
										cancellable="0"
										recastRule="powerRecastRule"
										rw_charge="1"
										debuffValue="1">
			<modifier r_name="'closeCombatHitDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customCloseCombatHitBonus'" r_modifiedValue="$0-debuffValue*rw_charge"/> 
			<modifier r_name="'rangedHitDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customRangedHitBonus'" r_modifiedValue="$0-debuffValue*rw_charge"/> 
			<modifier r_name="'defenseDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.Defense'" r_modifiedValue="$0-debuffValue*rw_charge"/> 
	 	</effectTemplate>

		<!-- MARK -->								
		<effectTemplate r_name="'markEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Mark')"
										r_graphic="'status_ranged.png'"
										effectTags="{'mark'}"
										r_effectName="text.effectNameMark"
										effectTooltip="text.effectTooltipMark"
										r_tickDuration="powerDuration"
										cancellable="0"
										recastRule="powerRecastRule">
			<modifier r_name="'rangedDefenseDebuff'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customRangedDefenseBonus'" r_modifiedValue="$0-debuffValue"/> 
	 	</effectTemplate>

		<!-- BLIND -->								
		<effectTemplate r_name="'blindEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Blind')"
										r_graphic="'status_blind.png'"
										effectTags="{'blind'}"
										r_effectName="text.effectNameBlind"
										effectTooltip="text.effectTooltipBlind"
										tickDuration="powerDuration"
										cancellable="0"
										recastRule="powerRecastRule"
										blindValue="0">
			<modifier r_name="'customCloseCombatHitBonus'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customCloseCombatHitBonus'" r_modifiedValue="$0-blindValue"/> 
			<modifier r_name="'customRangedHitBonus'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customRangedHitBonus'" r_modifiedValue="$0-blindValue"/> 
			<modifier r_name="'viewRange'" r_template="'mainEffectModifier'" r_modifierTarget="'target.r_viewRange'" r_modifiedValue="min($0,1)"/> 
	 	</effectTemplate>

		<!-- POISON -->				 
		<effectTemplate r_name="'poisonEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Poison')"
										r_graphic="'status_poison.png'"
										r_effectName="text.effectNamePoison"
										effectTooltip="text.effectTooltipPoison"
										effectTags="{'poison'}"
										r_tickDuration="powerDuration"
										r_tickCount="powerTickCount"
										rw_charge="1"
										recastRule="powerRecastRule">
		 	<effect r_name="'tickEffect'">
			 	<effect r_name="'damage'" r_template="'mainPhysicalDamageEffect'"
							 actionLogMethod="'logEffectWithDamage'"
							 offensiveDamageBonus="poisonDamage*(rw_charge+1)/2"
							 roll="0"/>
		 	</effect>
	 	</effectTemplate>

		<!-- BURN -->				 
		<effectTemplate r_name="'burnEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Burn')"
										r_graphic="'status_burn.png'"
										r_effectName="text.effectNameBurn"
										effectTooltip="text.effectTooltipBurn"
										effectTags="{'burn'}"
										r_tickDuration="powerDuration"
										r_tickCount="powerTickCount"
										rw_charge="1"
										recastRule="powerRecastRule">
		 	<effect r_name="'tickEffect'">
			 	<effect r_name="'damage'" r_template="'mainPhysicalDamageEffect'"
								actionLogMethod="'logEffectWithDamage'"
								offensiveDamageBonus="burnDamage*(rw_charge+1)/2"
								roll="0"/>
		 	</effect>
	 	</effectTemplate>

		<!-- SILENCE -->								
		<effectTemplate r_name="'silenceEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Silence')"
										r_graphic="'status_silence.png'"
										r_effectName="text.effectNameSilence"
										effectTooltip="text.effectTooltipSilence"
										effectTags="{'silence'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'Silenced'" r_template="'mainEffectModifier'" r_modifierTarget="'target.silenced'" r_modifiedValue="1"/>
	 	</effectTemplate>
		
		<!-- NO FLY -->								
		<effectTemplate r_name="'groundedEffect'" r_template="{'mainTargetEffectTemplate','mainDebuffEffectTemplate'}"
										r_enabled="!contains(target.immunities,'Grounded')"
										r_graphic="'status_slow.png'"
										r_effectName="text.effectNameGrounded"
										effectTooltip="text.effectTooltipGrounded"
										effectTags="{'grounded'}"
										r_tickDuration="powerDuration"
										recastRule="powerRecastRule">
			<modifier r_name="'grounded'" r_template="'mainEffectModifier'" r_modifierTarget="'target.isFlying'" r_modifiedValue="-1"/>
	 	</effectTemplate>
		
	</effects>
</data>