"DOTAAbilities"
{
    "Version"       "1"

	//=================================================================================================================
	// Kunkka: Tidal Wave( shard ability )
	//=================================================================================================================
	"kunkka_tidal_wave"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_HIDDEN | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"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"
		"MaxLevel"						"1"
		"FightRecapLevel"				"1"
		"IsGrantedByShard"			"1"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastRange"				"1050"	// if changing this, change wave_distance_tooltip
		"AbilityCastPoint"				"0.2"
		"AbilityCastAnimation"			"ACT_DOTA_CAST_ABILITY_4"
		
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"12"

		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"75"
		
		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
				"speed"		"700"
				"radius"		
				{
					"value"		"750"
					"affected_by_aoe_increase"	"1"
				}
				"damage"		"180"
				"duration"		"1.0"
				"wave_distance_tooltip"		"1800"
				"knockback_distance"		"600"
		}
	}

	//=================================================================================================================
	// Kunkka: Torrent
	//=================================================================================================================
	"kunkka_torrent"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_MAGICAL"	
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"
		"FightRecapLevel"				"1"
		"AbilitySound"					"Ability.Torrent"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastRange"				"1300"
		"AbilityCastPoint"				"0.4"
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		

	
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"90"

		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityModifierSupportValue"	"0.5"	// applies 2 modifiers
		
		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"radius"
			{
				"value"					"250"
				"affected_by_aoe_increase"	"1"
			}
			"movespeed_bonus"			"-40"
			"slow_duration"				"1 2 3 4"
			"stun_duration"
			{
				"value"								"1.4"
				"special_bonus_unique_kunkka_7"		"+25%"
			}
			"delay"						"1.6 1.6 1.6 1.6"
			"torrent_damage"
			{
				"value"			"110 180 250 320"
				"special_bonus_unique_kunkka_7"		"+25%"
			}
			"percent_instant"			"0"
			"damage_tick_interval"				"0.2"
			"AbilityCooldown"			
			{
				"value"						"16 14 12 10"
				"special_bonus_unique_kunkka_torrent_cooldown"			"-4"
			}	
		}		
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_1"
	}

	//=================================================================================================================
	// Kunkka: Torrent Storm ( scepter ability )
	//=================================================================================================================
	"kunkka_torrent_storm"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_AOE | DOTA_ABILITY_BEHAVIOR_HIDDEN | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_MAGICAL"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
		"MaxLevel"						"1"
		"FightRecapLevel"				"1"
		"IsGrantedByScepter"			"0"
		"HasScepterUpgrade"				"1"
		"AbilitySound"					"Ability.Torrent"

		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.4"
		"AbilityCastAnimation"			"ACT_DOTA_CAST_ABILITY_1"
		"AbilityCastRange"				"900"
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"75"

		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"275"
		
		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
				"torrent_interval"		
				{
					"special_bonus_scepter"				"0.25"
				}
				"torrent_duration"
				{
					"special_bonus_scepter"				"4.0"
				}
				"torrent_min_distance"		
				{
					"special_bonus_scepter"				"115"
				}
				"torrent_max_distance"		
				{
					"special_bonus_scepter"				"1100"
					"affected_by_aoe_increase"	"1"
				}
		}
	}

	//=================================================================================================================
	// Kunkka: Tidebringer
	//=================================================================================================================
	"kunkka_tidebringer"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_AUTOCAST | DOTA_ABILITY_BEHAVIOR_ATTACK"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_PHYSICAL"	
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO | DOTA_UNIT_TARGET_BASIC"
		"AbilitySound"					"Hero_Kunkka.Tidebringer.Attack"
		"IsBreakable"					"1"

		// Time
		//-------------------------------------------------------------------------------------------------------------

		"AbilityCastRange"				"150"
		"AbilityCastPoint"				"0.0 0.0 0.0 0.0"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{		
			"cleave_starting_width"			
			{
				"value"			"150"
				"affected_by_aoe_increase"	"1"
			}
			"cleave_ending_width"			
			{	
				"value"		"500 550 600 650"
				"affected_by_aoe_increase"	"1"
			}
			"cleave_distance"			
			{
				"value"			"650 775 900 1025"
				"affected_by_aoe_increase"	"1"
			}
			"damage_bonus"				
			{
				"value"			"35 70 105 140"
				"special_bonus_unique_kunkka_2"		"+75"
			}
			"cleave_damage"				
			{
				"value"								"150"
				"special_bonus_unique_kunkka_4"		"+80"
			}
			"movespeed_slow"
			{
				"value"					"0"
				"special_bonus_unique_kunkka_tidebringer_slow"		"-60"	
			}
			"movespeed_slow_duration"
			{
				"value"					"0"
				"special_bonus_unique_kunkka_tidebringer_slow"		"+1"	
			}
			
			"cooldown_reduction_per_hero_hit"
			{
				"value"												"0.0"
			}

			"AbilityCooldown"				
			{
				"value"					"13.0 10.0 7.0 4.0"
				"special_bonus_unique_kunkka_tidebringer_charges"	"=0.1"
			}
			"AbilityCharges"		
			{
				"value"	"0"
				"special_bonus_unique_kunkka_tidebringer_charges"	"+2"
			}

			"AbilityChargeRestoreTime"		
			{
				"value"			"0"
				"special_bonus_unique_kunkka_tidebringer_charges"	"=4"
			}

			"pierces_armor"
			{
				"value"		"0"
				"special_bonus_unique_kunkka_tidebringer_armor_pierce"	"+25"
			}
		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_2"
	}

	//=================================================================================================================
	// Kunkka: X Marks the Spot
	//=================================================================================================================
	"kunkka_x_marks_the_spot"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_BOTH"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
		"FightRecapLevel"				"1"
		"AbilitySound"					"Ability.XMarksTheSpot.Target"
		
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastRange"				"550 700 850 1000"
		"AbilityCastPoint"				"0.4 0.4 0.4 0.4"
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"24 20 16 12"

		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"50"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
				"duration"					"3.0"
				"allied_duration"	"6.0"
				"fow_range"				"400"
				"fow_duration"				"5.94"
				"ally_ms"	
				{
					"value"		"0"
				}
				"ally_armor"			"0"
				"rum_allies_radius"
				{
					"value"						"0"
					"special_bonus_facet_kunkka_grog"	"+400"
					"affected_by_aoe_increase"	"1"
				}
				"buff_duration"					// rum buff, must be named buff_duration
				{
					"value"						"0"
					"special_bonus_facet_kunkka_grog"	"+3"
				}
				"movespeed_bonus"				"15"
				"ghostship_absorb"
				{
					"value"						"35"
					"special_bonus_unique_kunkka_rum"	"+15"
				}
		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_3"
	}

	//=================================================================================================================
	// Kunkka: Return
	//=================================================================================================================
	"kunkka_return"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_HIDDEN | DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"AbilitySound"					"Ability.XMarksTheSpot.Return"
		"AbilityCastAnimation"			"ACT_DOTA_OVERRIDE_ABILITY_3"
		"AbilityCastGestureSlot"		"DEFAULT"
	
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.2"

		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"1.0"
	
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"0"
	}

	//=================================================================================================================
	// Kunkka: Ghostship
	//=================================================================================================================
	"kunkka_ghostship"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityType"					"ABILITY_TYPE_ULTIMATE"
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_DIRECTIONAL | DOTA_ABILITY_BEHAVIOR_POINT | DOTA_ABILITY_BEHAVIOR_IGNORE_BACKSWING"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_MAGICAL"	
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_NO"
		"FightRecapLevel"				"2"
		"AbilitySound"					"Ability.Ghostship"
		"AbilityDraftExtraAbilities"
		{
			"kunkka_tidal_wave" "shard"
		}
		"HasScepterUpgrade"				"1"
		
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastAnimation"			"ACT_DOTA_CAST_GHOST_SHIP"
		"AbilityCastGestureSlot"		"DEFAULT"
		"AbilityCastRange"				"1000"
		"AbilityCastPoint"				"0.3"
		
		// Time		
		//-------------------------------------------------------------------------------------------------------------
		

		// Damage.
		//-------------------------------------------------------------------------------------------------------------
		"AbilityDamage"					"350 475 600"
	
		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"125 175 225"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"tooltip_delay"				"3.1"
			"ghostship_distance"		"2000"
			"ghostship_width"			
			{
				"value"				"450"
				"affected_by_aoe_increase"	"1"
			}
			
			"stun_duration"				"1.2"
			"ghostship_speed"			"650"
			"rum_factor"				"2"
			"AbilityCooldown"				
			{
				"value"					"90 80 70"
			}

			"fleet_interval"
			{
				"special_bonus_scepter"		"2.5"
			}

			"fleet_count"
			{
				"special_bonus_scepter"		"2"
			}

			"fire_cannons"
			{
				"special_bonus_scepter"	"1"
			}

			"cannon_ball_damage_pct"		
			{
				"special_bonus_scepter"	"40"
			}

			"cannon_ball_distance"			
			{
				"special_bonus_scepter"	"1200"
			}

			"cannon_ball_speed"				
			{
				"special_bonus_scepter"	"1400"
			}

			"cannon_count"					
			{
				"special_bonus_scepter"	"4"
			}

			"cannon_ball_radius"			
			{
				"special_bonus_scepter"	"100"
			}

			"num_cannon_volleys"		"3"
			"cannon_fire_interval"			
			{
				"special_bonus_scepter"	"0.78"
			}

			"base_cannon_rotation"		"20"
			"rotation_per_cannon"		"12"
			"initial_cannon_offset"		"-150"
			"distance_between_cannons"	"75"
		}
	}

	//=================================================================================================================
	// Kunkka: Stalwart
	//=================================================================================================================
	"kunkka_admirals_rum"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE | DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE | DOTA_ABILITY_BEHAVIOR_FORCE_KEYBIND"
		"MaxLevel"						"1"
		"Innate"						"1"
		"IsBreakable"					"1"

		"AbilityValues"
		{
			"damage_threshold"			"65"
			"ghostship_absorb"
			{
				"value"					"18"
				"special_bonus_unique_kunkka_rum" "+8"
			}

			"buff_duration"				
			{
				"value"					"5"
				"special_bonus_unique_kunkka_rum_duration" "+1"
			}
			"movespeed_bonus"			
			{
				"value"					"7.75"
				"hero_levelup"			"+0.25"
			}
			"AbilityCooldown"
			{
				"value"							"50.5"
				"hero_levelup"					"-0.5"
			}
		}
	}
}
