"DOTAAbilities"
{
    "Version"       "1"
	
	//=================================================================================================================
	// Ability: Skeleton King
	//=================================================================================================================
	"skeleton_king_hellfire_blast"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
		"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_STRONG"
		"FightRecapLevel"				"1"
		"AbilitySound"					"Hero_SkeletonKing.Hellfire_Blast"
		
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastRange"				"525"
		"AbilityCastPoint"				"0.35 0.35 0.35 0.35"

		// Time		
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCooldown"				"14 12 10 8"

		// Damage.
		//-------------------------------------------------------------------------------------------------------------

		// Cost
		//-------------------------------------------------------------------------------------------------------------
		"AbilityManaCost"				"95 110 125 140"

		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityModifierSupportValue"	"0.5"	// Applies two modifiers

		// Special
		//-------------------------------------------------------------------------------------------------------------

		"AbilityValues"
		{
			"blast_speed"				"1200"
			"blast_stun_duration"
			{
				"value"					"1.0 1.2 1.4 1.6"
				"special_bonus_unique_wraith_king_11" "+0.75"
			}

			"blast_dot_duration"
			{
				"value"					"2.0"
				"special_bonus_unique_wraith_king_facet_1" "+2"
			}

			"blast_slow"				"-20"

			"damage"					
			{
				"value"		"80 100 120 140"

			}
			"blast_dot_damage"
			{
				"value"					"20 40 60 80"
			}
		}

		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_1"
	}
	
	//=================================================================================================================
	// Ability: Skeleton King Bone Guard
	//=================================================================================================================
	"skeleton_king_bone_guard"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_NO_TARGET | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_PHYSICAL"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_FRIENDLY"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_YES"
		"IsBreakable"					"1"
			
		// Casting
		//-------------------------------------------------------------------------------------------------------------
		"AbilityCastPoint"				"0.1"
		"AbilityManaCost"				"70 80 90 100"


		// Cost
		//-------------------------------------------------------------------------------------------------------------		
		"AbilityValues"
		{

			"skeleton_duration"			
			{
				"value"					"40"
			}

			"AbilityCooldown"
			{
				"value"					"42"
			}

			"max_skeleton_charges"		"2 4 6 8"	
			"min_skeleton_spawn"
			{
				"value"					"0"
				"special_bonus_unique_wraith_king_facet_3" "+5"
			}
			"spawn_interval"			"0.25"
			"reincarnate_time"			"3"
			"gold_bounty"						"5"
			"xp_bounty"						"5"

			"skeleton_damage_tooltip"
			{
				"value"							"34 39 43 49"
				"CalculateSpellDamageTooltip"	"0"
			}

			"talent_skeleton_damage"	
			{
				"value"							"0 5 10 15"
				//"special_bonus_unique_wraith_king_facet_2" "+23"
			}
			
			"skeleton_building_damage_reduction"		"35"	
			"skeleton_bonus_hero_damage"				"25"
			
			"skeleton_charges_per_hero_multiplier"					"4"			
		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_2"
	}

	//=================================================================================================================
	// Ability: Bone Guard Damage Tracker
	//=================================================================================================================
	"skeleton_king_bone_guard_damage_tracker"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
	}

	//=================================================================================================================
	// Ability: Skeleton King Cursed Blade
	//=================================================================================================================
	"skeleton_king_spectral_blade"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE | DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES"
		"AbilityUnitDamageType"			"DAMAGE_TYPE_PURE"
		"IsBreakable"					"1"

		// Cost
		//-------------------------------------------------------------------------------------------------------------		
		"AbilityValues"
		{			
			"cursed_damage_pct"
			{
				"value"										"50"
				"special_bonus_unique_wraith_king_facet_1"	"+15"
			}
			"cursed_damage"								
			{
				"value"									"10 25 40 55"
				"DamageTypeTooltip"						"DAMAGE_TYPE_PURE"
			}
			"curse_cooldown"
			{
				"value"										"18 16 14 12"
				"special_bonus_unique_wraith_king_facet_3"	"-25%"
			}
			"curse_cooldown_creep"
			{
				"value"										"6"
				"special_bonus_unique_wraith_king_facet_3"	"-25%" 
			}

			"curse_delay"
			{
				"value"										"3"
				//"special_bonus_unique_wraith_king_facet_2"	"-1"
			}

		}
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_2"
	}

	//=================================================================================================================
	// Ability: Skeleton King Mortal Strike
	//=================================================================================================================
	"skeleton_king_mortal_strike"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_ENEMY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_YES"
		"AbilitySound"					"Hero_SkeletonKing.CriticalStrike"
		"HasShardUpgrade"				"1"
		"IsBreakable"					"1"

		// Special
		//-------------------------------------------------------------------------------------------------------------
		"AbilityValues"
		{
			"crit_mult"					"160 200 240 280"
			"wraith_cd_mult"
			{
				"value"					"1"
			}
			"AbilityCooldown"
			{
				"value"									"5.0"
				"special_bonus_unique_wraith_king_10"	"-2"
			}

			"curse_damage_pct"
			{
				"special_bonus_shard"					"75"				
			}

			"curse_delay"
			{
				"special_bonus_shard"					"3"
			}

			"curse_cooldown"
			{
				"special_bonus_shard"					"0"
			}
		}

		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_3"
	}
	
	//=================================================================================================================
	// Ability: Skeleton King Reincarnation
	//=================================================================================================================
	"skeleton_king_reincarnation"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------
		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_CAN_SELF_CAST"
		"AbilityType"					"ABILITY_TYPE_ULTIMATE"
		"AbilityUnitTargetTeam"			"DOTA_UNIT_TARGET_TEAM_FRIENDLY"
		"AbilityUnitTargetType"			"DOTA_UNIT_TARGET_HERO"
		"SpellImmunityType"				"SPELL_IMMUNITY_ENEMIES_NO"
		"SpellDispellableType"			"SPELL_DISPELLABLE_YES"
		"FightRecapLevel"				"2"
		
		"HasScepterUpgrade"				"1"
		"AbilitySound"					"Hero_SkeletonKing.Reincarnate"
		
		"AbilityCastAnimation"		"ACT_DOTA_CAST_ABILITY_4"

		// Cost
		//-------------------------------------------------------------------------------------------------------------

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

		// Stats
		//-------------------------------------------------------------------------------------------------------------
		"AbilityModifierSupportValue"	"0.2"	// Slow isn't the main function of this ability.

		"AbilityValues"
		{
			"reincarnate_time"		"3.0 3.0 3.0"
			"slow_radius"			
			{
				"value"		"600"
					"affected_by_aoe_increase"	"1"
			}
			"movespeed"				"-75"
			"attackslow"			"-75"
			"slow_duration"			"4.0"
			"AbilityManaCost"
			{
				"value"					"220 110 0"
			}

			"clear_curse"
			{
				"value"						"0"
				"special_bonus_facet_skeleton_king_facet_cursed_blade"	"=1"
			}

			"shard_skeleton_count"		
			{
				"value"						"2 3 4"			
			}

			"AbilityCooldown"
			{
				"value"							"180 150 120"
				"special_bonus_scepter"			"-10"
			}
			"trigger_wraithfire_blast"
			{
				"special_bonus_unique_wraith_king_4"				"=1"
			}
		}
	}

	//=================================================================================================================
	// Skeleton King: Innate Vampiric Spirit
	//=================================================================================================================
	"skeleton_king_vampiric_spirit"
	{
		// General
		//-------------------------------------------------------------------------------------------------------------

		"AbilityBehavior"				"DOTA_ABILITY_BEHAVIOR_PASSIVE | DOTA_ABILITY_BEHAVIOR_NOT_LEARNABLE"
		"MaxLevel"						"1"
		"Innate"						"1"
		"HasScepterUpgrade"				"1"
		"IsBreakable"					"1"
		"AbilityValues"
		{
			"vampiric_aura"
			{
				"value"									"20"
				"hero_levelup"							"+0.5"
				"special_bonus_unique_wraith_king_2"	"+8"
			}
			"duration"
			{
				"value"							"4.25"
				"hero_levelup"					"+0.25"
				"levelup_interval"				"6"
				"special_bonus_scepter"			"+1"
			}
			"scepter_attack_speed"
			{
				"value"							"55"
			}
			"scepter_move_speed_pct"
			{
				"value"							"20"
			}
			"scepter_aura_radius"
			{
				"special_bonus_scepter"			"+1200"
				"affected_by_aoe_increase"	"1"
			}
		}
	}
}
