<data>
	<powers>
<!-- -->
<!-- TEMPLATES -->
<!-- -->
		<powerTemplate	r_name="'powerMonsterTemplate'"
										powerFatigueCost="0">
		</powerTemplate>
		
		<power r_name="'FireBolt'" r_template="{'MagicMissile','powerMonsterTemplate'}"
					 r_displayName="text.powerNameFireBolt"
					 missileGraphic="'slimeballRed.png'"
					 basePowerHitBonus="0"
					 basePowerDamage="5"
					 powerRange="5"/>
		
		<power r_name="'TransfertLife'" r_template="{'activePowerTemplate'}"
					 powerEffectTemplate="{'mainSelfEffectTemplate','standardHealTemplate'}"
					 r_displayName="text.powerMonsterTransfertLife"
					 powerHealBonus="10"
					 powerRange="7"
					 powerFatigueCost="0"
					 actionLogMethod="'logTransfertLife'">
			<action r_name="'use'">
				<effect r_name="'mainEffect'"
								r_enabled="costPaid"
								healBonus="powerHealBonus"
								transfertCost="resultingHeal">
					<effect r_name="'sacrifice'" r_template="'evaluationEffect'" r_effect="actor.hitPoints-=resultingHeal"/>
				</effect>
			</action>
		</power>
		
		<power r_name="'Shaken'" r_template="{'mainMentalDebuffPowerTemplate','enchantmentSpellTemplate'}"
					 r_displayName="text.powerMonsterShaken"
					 powerHitEffectTemplate="'shakenEffect'"
					 basePowerHitBonus="0"
					 powerRange="5"
					 powerFatigueCost="0"
					 powerDuration="(5D3)*100"
					 powerRecastRule="'fail'"
					 added="1">
			<action r_name="'use'" r_targetingType="'direct'"/>
		</power>					 
					 
		<power r_name="'LeechEnergy'" r_template="{'mainPowerMentalAttackDamage','enchantmentMentalSpellTemplate'}"
					 r_displayName="text.powerNameLeechEnergy"
					 powerHitEffectTemplate="'powerFatigueDamageEffect'"
					 basePowerHitBonus="0"
					 powerRange="4"
					 powerFatigueCost="0"
					 basePowerDamage="0">
			<action r_name="'use'" r_targetingType="'direct'"/>
		</power>					 
					 
		<power r_name="'Root'" r_template="{'mainSpellDebuffPowerTemplate','conjurationSpellTemplate'}"
					 r_displayName="text.powerNameRoot"
					 powerHitEffectTemplate="'rootEffect'"
					 basePowerHitBonus="0"
					 powerRange="7"
					 powerDuration="(2D3-1)*100"
					 powerRecastRule="'fail'"
					 added="1">
			<action r_name="'use'" r_targetingType="'direct'"/>
		</power>					 
					 
		<power r_name="'Blind'" r_template="{'mainSpellDebuffPowerTemplate','enchantmentMentalSpellTemplate'}"
					 r_displayName="text.powerNameBlind"
					 powerHitEffectTemplate="'blindEffect'"
					 basePowerHitBonus="0"
					 powerRange="7"
					 powerDuration="(2D2)*100"
					 powerRecastRule="'fail'"
					 added="1">
			<action r_name="'use'" r_targetingType="'direct'"/>
		</power>					 
					 
		<power r_name="'ProtectionSphere'" r_template="{'activePowerTemplate','transmutationSpellTemplate'}"
					 powerEffectTemplate="{'mainSquareEffectTemplate','controllerEffect'}"
		 			 r_displayName="text.powerNameProtectionSphere"
					 powerRange="0">
			<action r_name="'use'">
				<effect r_name="'mainEffect'"
								r_className="'CctlEffectLaunchAreaEffect'"
								r_area="{'circle',targetSquare.w_xCoord,targetSquare.w_yCoord,0,3}"
								r_areaTargetingType="'direct'">
					<effect r_name="'protectionEffect'" r_template="{'mainTargetEffectTemplate','mainBuffEffectTemplate'}"
									r_enabled="exists(target)&&(actor.r_allyFaction)[target.r_faction]"
			 						r_effectName="text.powerNameProtectionSphere"
									r_graphic="'Sanctuary.png'"
									actionLogMethod="'logTargetBuffEffect'"
									r_tickDuration="300"
									recastRule="'fail'">
						<modifier r_name="'Protection'" r_template="'mainEffectModifier'" r_modifierTarget="'target.customDamageAbsorption'" r_modifiedValue="$0+99"/>
					</effect>
					<effect r_name="'zoneEffectGraphic'" r_template="'zoneEffectGraphicTemplate'"
									zoneEffectGraphic="'holyAreaEffect'"
									delay="2*actor.square.distanceTo(targetSquare)"/>
				</effect>
			</action>
		</power>
		
		<power r_name="'PoisonBreath'" r_template="'mainPowerPhysicalAttackDamage'"
					 r_displayName="text.powerNamePoisonBreath"
					 basePowerHitBonus="10"
					 powerRange="7"
					 basePowerDamage="10"
					 missileGraphic="'slimeballGreen.png'">
			<action r_name="'use'">
				<effect r_name="'mainEffect'">
					<effect r_name="'cloudCreationEffect'" r_template="{'mainSquareEffectTemplate','controllerEffect'}"
									r_className="'CctlEffectLaunchAreaEffect'"
									r_area="{'circle',targetSquare.w_xCoord,targetSquare.w_yCoord,0,1}"
									r_areaTargetingType="'direct'">
						<effect r_name="'creationEffect'"
										r_className="'CctlEffectCreation'"
										r_creationType="'activable'"
										r_creationName="'poisonCloud'"
										r_params="{{'cloudLevel',poisonCloudLevel}}"/>
					</effect>
				</effect>
			</action>
		</power>

		<power r_name="'SummonEnemy'" r_template="'activePowerTemplate'"
					 r_displayName="text.powerNameSummonEnemy"
					 powerEffectTemplate="{'mainSelfEffectTemplate','multiEffect'}">
			<action r_name="'use'">
				<effect r_name="'mainEffect'">
					<effect r_name="'teleportEnemy'" r_template="{'mainSelfEffectTemplate','controllerEffect'}"
									r_className="'CctlEffectLaunchAction'"
									r_newActor="'self'"
									r_newTarget="'nearestActor'"
									r_nearestFrom="'actor'"
									r_viewRange="-1"
									r_nearestTargetingType="'all'"
									r_nearestRange="99"
									r_nearestActorRelation="'enemy'"
									r_newActionType="'power'"
									r_newActionName="'teleportEnemy'"
									r_delayRequest="0"
									r_params="{{'isFree',1},{'r_range',99},{'r_targetingType','all'}}"/>
				</effect>
			</action>
		</power>
		<power r_name="'TeleportEnemy'" r_template="'activePowerTemplate'"
					 r_displayName="text.powerNameSummonEnemy"
					 powerEffectTemplate="{'mainTargetEffectTemplate','controllerEffect'}">
			<action r_name="'use'">
				<effect r_name="'log'" r_template="'logPower'"/>
				<effect r_name="'mainEffect'"
								r_className="'CctlEffectTeleportation'"
								r_targetLevelIndex="w_levelIndex"
								rw_xTarget="actor.w_xCoord"
								rw_yTarget="actor.w_yCoord"
								r_walkSimulation="0"
								w_crossedSquare="0"
								r_randomDestination="1"
								r_randomRange="3"
								r_randomTargetingType="'allWalkable'"/>
			</action>
		</power>
	</powers>
</data>