"DOTAAbilities"
{
    "Version"       "1"
	
	//=================================================================================================================
	// Troll Warlord: Rampage (shard upgrade)
	//=================================================================================================================
	"troll_warlord_rampage"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_HIDDEN | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"SpellImmunityType"				"SPELL_IMMUNITY_ALLIES_YES"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"
		"MaxLevel"						"1"
		

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.0"
		"AbilityCastAnimation"			"ACT_DOTA_CAST_ABILITY_4"
		"AbilityCastGestureSlot"		"DEFAULT"
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"80"
	
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"75"
		"AbilityValues"
		{
			"attack_speed"
			{
				"value" "70"
			}
			"status_resistance"
			{
				"value" "25"
			}
			"duration"
			{
				"value" "5"
			}
		}
	}

	//=================================================================================================================
	// Troll Warlord: Berserker's Rage
	//=================================================================================================================
	"troll_warlord_berserkers_rage"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_YES"
		"AbilitySound"					"Hero_TrollWarlord.BerserkersRage.Toggle"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_PHYSICAL"	
		"IsBreakable"					"1"

		"MaxLevel"						"4"
		// Casting
		//-------------------------------------------------------------------------------------------------------------

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"bonus_move_speed"
			{
				"value"		"15 25 35 45"
				"special_bonus_unique_troll_warlord_2"		"+20"

			}
			"bonus_armor"
			{
				"var_type"				"FIELD_INTEGER"
				"value"					"0"
			}
			"bonus_range"			"350"
			"base_attack_time"		"1.4"
			"ensnare_chance"		"20"
			"ensnare_duration"		"0.8 1.2 1.6 2.0"
			"maim_chance"			"20"
			"maim_duration"			"0.8 1.2 1.6 2.0"
			"maim_slow"				"8 16 24 32"	
			"maim_attack_slow"				"8 16 24 32"	//note:currently unused in code, just tooltips.
			"maim_damage"		
			{
				"value"					"10 15 20 25"
				"CalculateSpellDamageTooltip"	"0"

			}
		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_1"
	}
	//=================================================================================================================
	// Troll Warlord: Switch Stance
	//=================================================================================================================
	"troll_warlord_switch_stance"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_TOGGLE | DOTA_ABILITY_BEHAVIOR_IMMEDIATE | DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE"
		"AbilitySound"					"Hero_TrollWarlord.BerserkersRage.Toggle"
		"MaxLevel"						"1"
		"Innate"						"1"
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.2"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"bonus_range"			"350"
			"base_attack_time"		"1.4"
			"armor_per_interval"	"1.0"
			"attack_speed_interval"	"30"
			"armor_bonus_tooltip"
			{
				"dynamic_value"				"true"
			}
		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_1"
	}

	//=================================================================================================================
	// Bristleback Innate Warpath Chaser
	//=================================================================================================================
	"troll_warlord_innate_masterful"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------

		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE | DOTA_ABILITY_BEHAVIOR_INNATE_UI"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
		"MaxLevel"						"1"
		"AbilityValues"
		{
			"bonus_range_pct"			"15"
		}
	}	
	//=================================================================================================================
	// Troll Warlord: Whirling Axes (Throw)
	//=================================================================================================================
	"troll_warlord_whirling_axes_ranged"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_MAGICAL"	
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"
		"FightRecapLevel"				"1"
		"AbilitySound"					"Hero_TrollWarlord.WhirlingAxes.Ranged"
		"HasScepterUpgrade"             "1"
		"LinkedAbility"					"troll_warlord_whirling_axes_melee"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastAnimation"			"ACT_DOTA_WHIRLING_AXES_RANGED"
		"AbilityCastGestureSlot"		"DEFAULT"
		"AbilityCastRange"				"950"
		"AbilityCastPoint"				"0.2 0.2 0.2 0.2"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"axe_width"					
			{
				"value"			"100"
				"affected_by_aoe_increase"	"1"
			}
			"axe_speed"					
			{
				"value"		"1500.0"
			}
			"axe_range"					
			{
				"value"			"950.0"
			}
			"axe_damage"				
			{ 
				"value"						"60 80 100 120"
				"special_bonus_unique_troll_warlord_3"		"+160"
			}
			"axe_slow_duration"			
			{
				"value"						"2.5 3 3.5 4"
				"special_bonus_unique_troll_warlord_whirling_axes_debuff_duration"				"+2.5"
			}
			"movement_speed"			"40"
			"axe_spread"				"25"
			"axe_count"					"5"
			"AbilityCooldown"
			{
				"value"							"9"
				"special_bonus_scepter"			"-5"
			}
			"AbilityManacost"
			{
				"value"							"50"
				"special_bonus_scepter"			"-30"
			}
			"pierces_magic_immunity"
			{
				"special_bonus_unique_troll_warlord_6"			"+1"
			}
		}
	}

	//=================================================================================================================
	// Troll Warlord: Whirling Axes Spin
	//=================================================================================================================
	"troll_warlord_whirling_axes_melee"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IMMEDIATE"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_MAGICAL"	
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"
		"FightRecapLevel"				"1"
		"AbilitySound"					"Hero_TrollWarlord.WhirlingAxes.Melee"
		"LinkedAbility"					"troll_warlord_whirling_axes_ranged"

		"HasScepterUpgrade"             "1"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
 		"AbilityCastAnimation"			"ACT_DOTA_CAST_ABILITY_3"
		"AbilityCastGestureSlot"		"DEFAULT"
		"AbilityCastPoint"				"0.0"


		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"damage"
			{
				"value"					"75 120 165 210"
				"special_bonus_unique_troll_warlord_3"		"+160"
			}
			"hit_radius"				
			{
				"value"		"100"
				"affected_by_aoe_increase"	"1"
			}
			"max_range"					
			{
				"value"		"450.0"
				"affected_by_aoe_increase"	"1"
			}
			"axe_movement_speed"		"1250"
			"blind_duration"			
			{
				"value"						"5"
				"special_bonus_unique_troll_warlord_whirling_axes_debuff_duration"				"+2.5"
			}
			"blind_pct"					"60"
			"whirl_duration"			"3.0"
			"AbilityCooldown"
			{
				"value"							"9"
				"special_bonus_scepter"			"-5"
			}
			"AbilityManacost"
			{
				"value"							"50"
				"special_bonus_scepter"			"-25"
			}
			"pierces_magic_immunity"
			{
				"value"											"0"
				"special_bonus_unique_troll_warlord_6"			"+1"
			}
		}
	}

	//=================================================================================================================
	// Troll Warlord Scepter
	//=================================================================================================================
	"troll_warlord_scepter"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_HIDDEN | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"

		"MaxLevel"						"1"
		"FightRecapLevel"				"1"
		"IsGrantedByScepter"			"1"
		"HasScepterUpgrade"			"1"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastAnimation"			"ACT_DOTA_WHIRLING_AXES_RANGED"
		"AbilityCastGestureSlot"		"DEFAULT"
		"AbilityCastRange"				"800"
		"AbilityCastPoint"				"0.2"

		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"25"

		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"150"
		"AbilityValues"
		{
			"range"
			{
				"value" "1200"
			}
			"duration"
			{
				"value" "3"
			}
		}
	}

	//=================================================================================================================
	// Troll Warlord: Fervor
	//=================================================================================================================
	"troll_warlord_fervor"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
 		"AbilityCastAnimation"			"ACT_INVALID"
		"HasShardUpgrade"				"1"
		"IsBreakable"					"1"

		// Casting
		"AbilityValues"
		{
			"attack_speed"			
			{
				"value"		"15 20 25 30"
				"special_bonus_unique_troll_warlord_5"		"+4"
			}
			"max_stacks"			
			{
				"value"		"10"
			}
			"stack_limit_during_battle_trance"
			{
				"value"												"0"
				"special_bonus_facet_troll_warlord_bad_influence"	"+12"		// BEHAVIOR ONLY, DOES NOT UPDATE TOOLTIP: Update stack_limit_tooltip for tooltip change
			}
			"extra_attack_chance_per_stack"
			{
				"special_bonus_shard"	"3"
			}
			"base_chance"
			{
				"special_bonus_shard"	"16"
			}
			"armor_per_stack"
			{
				"special_bonus_facet_troll_warlord_insensitive"			"+1.0"				
			}
			"range_buffer"
			{
				"special_bonus_shard"			"=175"
			}
		}
	}
	
	//=================================================================================================================
	//  Troll Warlord: Battle Trance
	//=================================================================================================================
	"troll_warlord_battle_trance"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_BOTH"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
		"FightRecapLevel"				"2"
		"AbilitySound"					"Hero_TrollWarlord.BattleTrance.Cast"
		"AbilityType"					"ABILITY_TYPE_ULTIMATE"
		"MaxLevel"						"3"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastAnimation"			"ACT_DOTA_CAST_ABILITY_4"
		"AbilityCastGestureSlot"		"DEFAULT"
		"AbilityCastPoint"				"0.0 0.0 0.0"
		"AbilityCastRange"				"525"
	
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"150"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"trance_duration"		
			{
				"value"									"6.5"
				"special_bonus_unique_troll_warlord"	"+1"
			}
			"AbilityCooldown"
			{
				"value"			"90 80 70"
			}
			"lifesteal"			"40 60 80"
			"attack_speed"			"140 170 200"
			"attack_speed_share_percent"
			{
				"value"						"0"
				"special_bonus_unique_troll_warlord_battle_trance_movespeed"	"+100"				
			}
			"movement_speed"
			{
				"value"		"25 30 35"
			}

			"range"				
			{
				"value"	"900"
				"affected_by_aoe_increase"	"1"
			}

			"stack_limit_tooltip"
			{
				"value"												"0"
				"special_bonus_facet_troll_warlord_bad_influence"	"+12"		// TOOLTIP ONLY: Update stack_limit_during_battle_trance for behavior change
			}
			"ignore_attack_speed_limit"
			{
				"value"												"0"
				"special_bonus_facet_troll_warlord_bad_influence"	"+1"
			}
			"strong_dispel"
			{
				"special_bonus_unique_troll_warlord_4"				"=1"
			}
		}
	}

	//=================================================================================================================
	// Dark Troll Warlord: Ensnare
	//=================================================================================================================
	"dark_troll_warlord_ensnare"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"MaxLevel"						"1"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"

		// Unit Targeting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"

		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastRange"				"550 625 700 825"
		"AbilityCastPoint"				"0.3"
		"AbilityCooldown"				"15.0"
		"AbilityManaCost"				"75"
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_1"
		"AbilityValues"
		{
			"duration"
			{
				"value" "1.75"
			}
			"net_speed"
			{
				"value" "1500"
			}
		}
	}

	//=================================================================================================================
	// Dark Troll Warlord: Raise Dead
	//=================================================================================================================
	"dark_troll_warlord_raise_dead"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"MaxLevel"						"1"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET"

		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.3"
		"AbilityCooldown"				"20.0"
		"AbilityManaCost"				"50"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"duration"				"35.0"
			"skeletons_created"		"3"
			"skeletons_health"		"250 275 300 375"
			"skeletons_damage"		"12 15 18 21"

		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_2"
	}
}
