<data>
	<powers>
<!-- -->
<!-- ROGUE POWERS -->
<!-- -->
		<power r_name="'PoisonWeapon'" r_template="'weaponProcAllWeaponsTemplate'"
					 r_displayName="text.powerNamePoisonWeapon"
					 r_graphic="'PoisonWeapon.png'"
					 powerTooltip="text.powerTooltipPoisonWeapon"
					 powerDuration="100"
					 powerTickCount="5"
					 powerHitBonus="1.5*packages.Rogue.classLevel"
					 poisonDamage="round(1+packages.Rogue.classLevel/2)"
					 procEffectTemplate="'physicalPoisonAttack'"
					 powerRecastRule="'addTickCount'"/>
		<power r_name="'CombatReflex'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameCombatReflex"
					 r_graphic="'CombatReflex.png'"
					 powerTooltip="text.powerTooltipCombatReflex">
			<modifier r_name="'CloseCombatDefenseBonus'" r_template="'mainPowerModifier'" r_modifierTarget="'customCloseCombatDefenseBonus'" r_modifiedValue="$0+CloseCombat/2"/>
			<modifier r_name="'RangedDefenseBonus'" r_template="'mainPowerModifier'" r_modifierTarget="'customRangedDefenseBonus'" r_modifiedValue="$0+RangedCombat/2"/>
		</power>
		<power r_name="'SlowingShot'" r_template="{'WeaponAttackWithEffectTemplate','powerAttackValueInterface'}"
					 powerEffectOnAttack="{'mainSelfEffectTemplate','multiEffect'}"
					 slotName="'ranged'"
					 r_displayName="text.powerNameSlowingShot"
					 r_graphic="'SnaringShot.png'"
					 powerSlowValue="1.1+0.04*packages.Rogue.classLevel"
					 powerDuration="1000"
					 powerFatigueCost="5"
					 powerRecastRule="'resetDuration'"
					 skillName="slotOK?(effectiveSlot.weaponSkillName):''"
					 mainSkillName="slotOK?(effectiveSlot.mainCombatSkillName):''"
					 basePowerHitBonus="packages.Rogue.classLevel"
					 powerTooltip="text.powerTooltipSlowingShot"
					 valueTooltip="'Duration : ' + ((powerDuration>0)?powerDuration:'infinite') + ', Range : ' + powerRange"
					 canRoot="0">
			<action r_name="'use'">
				<effect r_name="'mainEffect'">
					<effect r_name="'powerEffect'">
						<effect r_name="'slowEffect'" r_template="'physicalSlowAttack'"/>
						<effect r_name="'rootEffect'" r_template="'physicalRootAttack'"
										r_enabled="canRoot&&(1D2==1)"
										r_tickDuration="300"
										recastRule="'fail'"/>
					</effect>
				</effect>
			</action>
		</power>
		<power r_name="'ImprovedSlowingShot'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameImprovedSlowingShot"
					 r_graphic="'ImprovedSnaring.png'"
					 powerTooltip="text.powerTooltipImprovedSlowingShot">
			<modifier r_name="'ImprovedSlowingShot'" r_template="'mainPowerModifier'" r_modifierTarget="'powers.SlowingShot.canRoot'" r_modifiedValue="1"/>
		</power>
		<power r_name="'ArmorPiercing'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameArmorPiercing"
					 r_graphic="'ArmorPiercing.png'"
					 powerTooltip="text.powerTooltipArmorPiercing"
					 weaponIsAffected="mainhand.weaponSkillName=='Dagger'">
			<modifier r_name="'mainhandAPBonus'" r_template="'mainPowerModifier'" r_enabled="w_learned&&exists(mainhand)" r_modifierTarget="'mainhand.weaponPiercingDamage'" r_modifiedValue="$0+(weaponIsAffected?(packages.Rogue.classLevel):0)"/>
			<modifier r_name="'offhandAPBonus'" r_template="'mainPowerModifier'" r_enabled="w_learned&&exists(offhand)&&exists(offhand.weaponPiercingDamage)" r_modifierTarget="'offhand.weaponPiercingDamage'" r_modifiedValue="$0+(weaponIsAffected?(packages.Rogue.classLevel):0)"/>
			<modifier r_name="'rangedAPBonus'" r_template="'mainPowerModifier'" r_enabled="w_learned&&exists(ranged)" r_modifierTarget="'ranged.weaponPiercingDamage'" r_modifiedValue="$0+packages.Rogue.classLevel"/>
			<event r_name="'mainhandWeaponUpdate'" r_template="'mainEventTemplate'" r_eventTarget="'mainhand'" r_targetType="'evaluator'">
				<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'ArmorPiercing'"/>
			</event>
			<event r_name="'offhandWeaponUpdate'" r_template="'mainEventTemplate'" r_eventTarget="'offhand'" r_targetType="'evaluator'">
				<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'ArmorPiercing'"/>
			</event>
			<event r_name="'rangedWeaponUpdate'" r_template="'mainEventTemplate'" r_eventTarget="'ranged'" r_targetType="'evaluator'">
				<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'ArmorPiercing'"/>
			</event>
		</power>
		<power r_name="'CriticalStrike'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameCriticalStrike"
					 r_graphic="'CriticalStrike.png'"
					 powerTooltip="text.powerTooltipCriticalStrike">
		 	<modifierTemplate r_name="'criticalStrikeTemplate'" r_template="'mainPowerModifier'"
												r_enabled="exists(attributeByName(slotName))&&exists(attributeByName(slotName).weaponCriticalPercentage)"
												r_modifierTarget="slotName+'.weaponCriticalPercentage'"
												r_modifiedValue="$0+5*(packages.Rogue.classLevel-5)">
			</modifierTemplate>
			<modifier r_name="'criticalMainhand'" r_template="'criticalStrikeTemplate'" slotName="'mainhand'"/>
			<modifier r_name="'criticalOffhand'" r_template="'criticalStrikeTemplate'" slotName="'offhand'"/>
			<modifier r_name="'criticalRanged'" r_template="'criticalStrikeTemplate'" slotName="'ranged'"/>
		</power>
		<power r_name="'TrapDetection'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameTrapDetection"
					 r_graphic="'TrapDetection.png'"
					 powerTooltip="text.powerTooltipTrapDetection">
			<modifier r_name="'TrapVisibility'" r_template="'mainPowerModifier'" r_modifierTarget="'gameParameters.trapVisibility'" r_modifiedValue="1"/>
		</power>
		<power r_name="'FreedomOfMovement'" r_template="'activePowerTemplate'"
					 powerEffectTemplate="{'mainSelfEffectTemplate','controllerEffect'}"
					 r_displayName="text.powerNameFreedomOfMovement"
					 r_graphic="'Freedom.png'"
					 powerFatigueCost="5"
					 powerRange="0"
					 powerTooltip="text.powerTooltipFreedomOfMovement">
			<action r_name="'use'" timeCost="0">
				<effect r_name="'mainEffect'"
								r_className="'CctlEffectRemoveDurable'"
								r_condition="contains(targetEffect.effectTags,'root')||contains(targetEffect.effectTags,'slow')"/>
				<effect r_name="'log'" r_template="'logPower'" r_enabled="costPaid"/>
			</action>
		</power>
		<power r_name="'SmokeScreen'" r_template="'activePowerTemplate'"
					 powerEffectTemplate="{'mainSquareEffectTemplate','controllerEffect'}"
					 r_displayName="text.powerNameSmokeScreen"
					 r_graphic="'SmokeScreen.png'"
					 powerFatigueCost="5"
					 powerRange="3"
					 powerTooltip="text.powerTooltipSmokeScreen">
			<action r_name="'use'" r_canTarget="1" canBeInAutoAttack="0">
				<effect r_name="'mainEffect'"
								r_className="'CctlEffectCreation'"
								r_creationType="'activable'"
								r_creationName="'smoke'"
								r_params="{}"/>
				<effect r_name="'log'" r_template="'logPower'" r_enabled="costPaid"/>
			</action>
		</power>
		<power r_name="'CripplingStrike'" r_template="'weaponProcAllWeaponsTemplate'"
					 r_displayName="text.powerNameCripplingStrike"
					 r_graphic="'Crippling.png'"
					 powerTooltip="text.powerTooltipCripplingStrike"
					 powerDuration="100*packages.Rogue.classLevel/2"
					 powerRecastRule="'resetDurationAndAddCharge'"
					 powerHitBonus="1.5*packages.Rogue.classLevel"
					 procEffectTemplate="'physicalCripplingAttack'"/>
		
<!-- -->
<!-- ARCHER POWERS -->
<!-- -->
		<power r_name="'PointBlankShot'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNamePointBlankShot"
					 r_graphic="'PointBlankShot.png'"
					 powerTooltip="text.powerTooltipPointBlankShot">
			<event r_name="'rangedWeaponUpdate'" r_template="'mainEventTemplate'" r_eventTarget="'ranged'" r_targetType="'evaluator'">
				<effect r_name="'eventRefresh'" r_template="{'mainSelfEffectTemplate','utilityEffect'}" r_className="'CutiEffectRefreshHierarchy'" r_refreshTarget="'PointBlankShot'"/>
			</event>
			<modifier r_name="'rangedWeaponMinRange'" r_template="'mainPowerModifier'" r_enabled="exists(ranged)" r_modifierTarget="'ranged.weaponMinRange'" r_modifiedValue="1"/>
		</power>
		<power r_name="'ImpactArrow'" r_template="'WeaponAttackWithEffectTemplate'"
					 powerEffectOnAttack="'pushEffect'"
					 slotName="'ranged'"
					 r_displayName="text.powerNameImpactArrow"
					 r_graphic="'ImpactArrow.png'"
					 powerFatigueCost="5"
					 powerTooltip="text.powerTooltipImpactArrow">
			<action r_name="'use'"
							r_targetingType="'line8'"/>
		</power>
		<power r_name="'DoubleShot'" r_template="'weaponProcTemplate'"
					 r_displayName="text.powerNameDoubleShot"
					 r_graphic="'DoubleShot.png'"
					 powerTooltip="text.powerTooltipDoubleShot"
					 procEffectTemplate="'launchActionProcEffect'"
					 powerActionType="'equippedItem'"
					 powerActionNamed="'ranged'"
					 procProbability="packages.Archer.classLevel*5>1D100"
					 noRecursiveProc="1"
					 procParams="{{'isFree',1}}"
					 procLogName="r_displayName">
			<event r_name="'procRanged'" r_template="'eventProcTemplate'" slotName="'ranged'"/>
		</power>
		<power r_name="'RapidFire'" r_template="'mainBuffPowerTemplate'"
					 r_displayName="text.powerNameRapidFire"
					 r_graphic="'RapidFire.png'"
					 powerBonus="10+5*packages.Archer.classLevel"
					 powerDuration="-1"
					 powerFatigueCost="0"
					 buffExhaustionReduction="5"
					 powerTooltip="text.powerTooltipRapidFire">
			<action r_name="'use'">
				<effect r_name="'mainEffect'">
					<modifier r_name="'AttackDelay'" r_template="'mainEffectModifier'" r_enabled="w_launched&&exists(ranged)" r_modifierTarget="'ranged.action.timeCost'" r_modifiedValue="$0-powerBonus"/>
					<modifier r_name="'FatigueCost'" r_template="'mainEffectModifier'" r_enabled="w_launched&&exists(ranged)" r_modifierTarget="'ranged.action.fatigueCost'" r_modifiedValue="$0+1"/>
				</effect>
			</action>
		</power>
		<power r_name="'PiercingShot'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNamePiercingShot"
					 r_graphic="'PiercingShot.png'"
					 powerTooltip="text.powerTooltipPiercingShot">
			<modifier r_name="'RangedPiercingBonus'" r_template="'mainPowerModifier'" r_modifierTarget="'customRangedPiercingBonus'" r_modifiedValue="$0+5"/>
		</power>
<!-- -->
<!-- ASSASSIN POWERS -->
<!-- -->
		<power r_name="'TrapCreation'" r_template="'activePowerTemplate'"
					 powerEffectTemplate="{'mainSquareEffectTemplate','controllerEffect'}"
					 r_displayName="text.powerNameTrapCreation"
					 r_graphic="'Trap.png'"
					 powerFatigueCost="5"
					 powerRange="3"
					 powerTooltip="text.powerTooltipTrapCreation">
			<action r_name="'use'" r_canTarget="(targetSquare.r_moveMask&7)==0" canBeInAutoAttack="0">
				<effect r_name="'mainEffect'"
								r_enabled="costPaid"
								r_className="'CctlEffectCreation'"
								r_creationType="'activable'"
								r_creationName="'heroTrap'"
								r_params="{}"/>
				<effect r_name="'log'" r_template="'logPower'" r_enabled="costPaid"/>
			</action>
		</power>
		<power r_name="'NoMercy'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameNoMercy"
					 r_graphic="'NoMercy.png'"
					 powerTooltip="text.powerTooltipNoMercy">
		 	<modifierTemplate r_name="'noMercyTemplate'" r_template="'mainPowerModifier'"
												r_enabled="exists(attributeByName(slotName))&&exists(attributeByName(slotName).weaponDamage)"
												r_modifierTarget="slotName+'.weaponDamage'"
												r_modifiedValue="$0+(exists(target)&&(target.rooted||target.slowed||target.stuned)?(5+packages.Assassin.classLevel):0)">
			</modifierTemplate>
			<modifier r_name="'criticalMainhand'" r_template="'noMercyTemplate'" slotName="'mainhand'"/>
			<modifier r_name="'criticalOffhand'" r_template="'noMercyTemplate'" slotName="'offhand'"/>
			<modifier r_name="'criticalRanged'" r_template="'noMercyTemplate'" slotName="'ranged'"/>
		</power>
		<power r_name="'DualWieldMaster'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameDualWieldMaster"
					 r_graphic="'DualWieldMaster.png'"
					 powerTooltip="text.powerTooltipDualWieldMaster">
			<modifier r_name="'dualWieldOffhandCostModifier'" r_template="'mainPowerModifier'" r_modifierTarget="'dualWieldOffhandCostModifier'" r_modifiedValue="$0-0.1*(packages.Assassin.classLevel-2)"/>
		</power>
		<power r_name="'MasterPoisonner'" r_template="'mainPowerTemplate'"
					 r_displayName="text.powerNameMasterPoisonner"
					 r_graphic="'PoisonMaster.png'"
					 powerTooltip="text.powerTooltipMasterPoisonner">
			<modifier r_name="'PoisonWeaponRecastModifier'" r_template="'mainPowerModifier'" r_modifierTarget="'powers.PoisonWeapon.powerRecastRule'" r_modifiedValue="'resetTickIndexAndAddCharge'"/>
		</power>
		<power r_name="'DeathAttack'" r_template="'mainPowerPhysicalAttack'"
					 r_displayName="text.powerNameDeathAttack"
					 r_graphic="'DeathAttack.png'"
					 powerTooltip="text.powerTooltipDeathAttack"
		 			 powerHitEffectTemplate="{'mainTargetEffectTemplate','multiEffect'}"
		 			 powerMissEffectTemplate="{'mainTargetEffectTemplate','multiEffect'}"
					 skillName="'Dagger'"
					 mainSkillName="'CloseCombat'"
					 powerDuration="300"
					 powerRecastRule="'fail'"
					 powerRange="3"
					 powerFatigueCost="15">
			<action r_name="'use'">
				<modifier r_name="'livingTargeting'" r_template="'mainModifierTemplate'" r_modifierTarget="'r_canTarget'" r_modifiedValue="$0&&contains(target.encounterTags,'living')"/>
				<effect r_name="'mainEffect'">
					<effect r_name="'hitEffect'" r_effectName="text.powerNameDeathAttack">
						<effect r_name="'log'" r_template="'logPowerWithEffect'"/>
						<effect r_name="'kill'" r_template="{'mainTargetEffectTemplate','evaluationEffect'}" r_effect="target.isDead=1"/>
					</effect>
					<effect r_name="'missEffect'">
						<effect r_name="'log'" r_template="'logPowerMissed'"/>
						<effect r_name="'stun'" r_template="'stunEffect'" actionLogMethod="'logDebuffEffect'"/>
					</effect>
				</effect>
			</action>
		</power>
	</powers>
</data>