-- Path of Building
--
-- Minion active skills
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...

#skill ChaosElementalCascadeSummoned Cascade
#flags spell area
#mods

#skill SandstormChaosElementalSummoned Chaos Aura
#flags spell duration area
#baseMod skill("dotIsArea", true)
#mods

#skill SandstormChaosElementalSummonedEmpowered Empowered Chaos Aura
#flags spell duration area
#baseMod skill("dotIsArea", true)
#mods

#skill FireElementalFlameRedSummoned Immolate
#flags spell projectile
#mods

#skill FireElementalMortarSummoned Magma Ball
#flags spell projectile area
#mods

#skill FireElementalConeSummoned Flame Wave
#flags spell area
#mods

#skill FireElementalMeteorSummoned Meteor
#flags attack area
#baseMod skill("showAverage", true)
#mods

#skill IceElementalIceCyclone Cyclone
#flags attack area melee movement
#baseMod skill("dpsMultiplier", 2)
#mods

#skill IceElementalSpearSummoned Ice Spear
#flags spell projectile
#mods

#skill IceElementalSpearSummonedDeathNova Death Nova
#flags spell projectile area
#mods

#skill DeathExplodeIceElementalSummoned Explode
#flags spell area
#mods

#skill LightningGolemArcSummoned Storm Orb
#flags spell projectile duration
#mods

#skill MonsterProjectileSpellLightningGolemSummoned Lightning Projectile
#flags spell projectile
#mods

#skill LightningGolemWrath Lightning Golem Wrath
#flags spell aura area duration
	statMap = {
		["attack_minimum_added_lightning_damage"] = {
			mod("LightningMin", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura" }),
		},
		["attack_maximum_added_lightning_damage"] = {
			mod("LightningMax", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura" }),
		},
		["spell_minimum_added_lightning_damage"] = {
			mod("LightningMin", "BASE", nil, 0, KeywordFlag.Spell, { type = "GlobalEffect", effectType = "Aura" }),
		},
		["spell_maximum_added_lightning_damage"] = {
			mod("LightningMax", "BASE", nil, 0, KeywordFlag.Spell, { type = "GlobalEffect", effectType = "Aura" }),
		},
	},
#mods

#skill SpectralSkullShieldCharge Charge
#flags attack melee movement
#mods

#skill RagingSpiritMeleeAttack
#flags attack melee
#mods

#skill SkeletonMinionProjectileCold Cold Projectile
#flags spell projectile
#mods

#skill SkeletonMinionProjectileFire Fire Projectile
#flags spell projectile
#mods

#skill SkeletonMinionProjectileLightning Lightning Projectile
#flags spell projectile
#mods

#skill RockGolemSlam Slam
#flags attack melee area
#mods

#skill RockGolemMinionWhirlingBlades Roll
#flags attack melee movement
#mods

#skill ZombieSlam Slam
#flags attack melee area
#baseMod skill("radius", 18)
#mods

#skill GAZombieCorpseGroundImpact Falling Slam
#flags attack melee area
	preDamageFunc = function(activeSkill, output)
		activeSkill.skillData.hitTimeOverride = 1 / (activeSkill.summonSkill.skillData.summonSpeed or 1)
	end,
#mods

#skill SummonedSpiderViperStrike
#flags attack melee
#mods

#skill DancingDervishCycloneChannelled
#flags attack area melee
#baseMod skill("radiusIsWeaponRange", true)
#mods

#skill SummonPhantasmFadingProjectile Physical Projectile
#flags spell projectile
#mods

#skill HeraldOfAgonyMinionMortar Mortar
#flags attack projectile area
#mods

#skill HeraldOfAgonyMinionTailSpike Tail Spike
#flags attack projectile
#mods

#skill HeraldOfAgonyMinionCleave Cleave
#flags attack melee area
#mods

#skill HeraldOfLightMinionSlam Slam
#flags attack melee area
#mods

#skill SentinelHolySlam Crusade Slam
#flags attack melee area
#mods

#skill RelicTriggeredNova Nova
#flags spell
#baseMod skill("showAverage", true)
#mods

#skill DominatingBlowMinionCharge
#flags attack melee
#mods

#skill VaalDominationMelee Default Attack
#flags attack melee projectile
#mods

#skill VaalDominationSunder Sunder
#flags attack melee area
#mods

#skill GAVaalDominationLargeSlam AoE Slam
#flags attack  area
#mods

#skill AbsolutionMinion
#flags area spell duration
#mods

#skill AbsolutionMinionEmpowered Empowered Absolution
#flags area spell duration
#mods

#skill AbsolutionMinionVaal
#flags area spell duration
#mods

#skill AbsolutionMinionVaalCascade Absolution Cascade
#flags area spell duration
#mods

#skill VaalAbsolutionDelayedBlast AoE Blast
#flags area spell
#mods

#skill SummonedRhoaShieldCharge
#flags attack melee area
#mods

#skill SummonedSnakeProjectile Chaos Projectile
#flags attack projectile
#mods

#skill DropBearSummonedGroundSlam
#flags attack melee area
#mods

#skill DropBearSummonedRallyingCry
#flags warcry area duration
	statMap = {
		["damage_+%"] = {
			mod("Damage", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff" }),
		},
	},
#baseMod skill("buffAllies", true)
#mods

#skill BoneGolemMultiAttack Combo Attack
#flags attack melee
	statMap = {
		["bone_golem_attack_speed_+%_final_after_third_combo_index"] = {
			mod("Speed", "MORE", nil, 0, KeywordFlag.Attack),
			div = 1.5,
		},
		["bone_golem_damage_+%_final_after_third_combo_index"] = {
			mod("Damage", "MORE", nil),
			div = 1.5,
		},
	},
#mods

#skill BoneGolemCascade Cascade
#flags attack melee area
#baseMod skill("showAverage", true)
#mods

#skill BoneGolemLeapSlam
#flags attack melee area
#baseMod skill("showAverage", true)
#mods

#skill EGBoneGolemConsumeCorpse Consume Corpse
#mods

#skill BoneGolemCascadeEmpowered Empowered Cascade
#flags attack melee area
#baseMod skill("showAverage", true)
#mods

#skill SkitterbotWait Skitterbot Wait
#flags duration
#mods

skills["MinionInstability"] = {
	name = "Minion Instability",
	hidden = true,
	color = 4,
	baseFlags = {
		cast = true,
		area = true,
		fire = true,
	},
	skillTypes = { [SkillType.Damage] = true, [SkillType.Area] = true },
	preDamageFunc = function(activeSkill, output)
		activeSkill.skillData.hitTimeOverride = 1 / (activeSkill.summonSkill.skillData.summonSpeed or 1)
	end,
	baseMods = {
		skill("FireMin", 1, { type = "PerStat", stat = "Life", div = 1/.33 }),
		skill("FireMax", 1, { type = "PerStat", stat = "Life", div = 1/.33 }),
		skill("showAverage", true),
		skill("radius", 22),
	},
	stats = {
	},
	levelMods = {
	},
	levels = {
		[1] = { cost = { } },
	},
}
skills["SiegebreakerCausticGround"] = {
	name = "Caustic Ground",
	hidden = true,
	color = 4,
	baseFlags = {
		area = true,
		duration = true,
	},
	skillTypes = { [SkillType.Spell] = true, [SkillType.Duration] = true, [SkillType.Damage] = true, [SkillType.Area] = true, [SkillType.DamageOverTime] = true, [SkillType.Triggerable] = true, [SkillType.Chaos] = true, [SkillType.AreaSpell] = true, },
	baseMods = {
		skill("ChaosDot", 1, { type = "PercentStat", stat = "Life", percentVar = "SiegebreakerCausticGroundPercent" }),
		skill("dotIsArea", true),
		flag("dotIsCausticGround"),
	},
	qualityStats = {
	},
	stats = {
	},
	levels = {
		[1] = { cost = { } },
	},
}
skills["ReplicaSiegebreakerBurningGround"] = {
	name = "Burning Ground",
	hidden = true,
	color = 4,
	baseFlags = {
		area = true,
		duration = true,
	},
	skillTypes = { [SkillType.Spell] = true, [SkillType.Duration] = true, [SkillType.Damage] = true, [SkillType.Area] = true, [SkillType.DamageOverTime] = true, [SkillType.Triggerable] = true, [SkillType.Fire] = true, [SkillType.AreaSpell] = true, [SkillType.CausesBurning] = true, },
	baseMods = {
		skill("FireDot", 1, { type = "PercentStat", stat = "Life", percentVar = "SiegebreakerBurningGroundPercent" }),
		skill("dotIsArea", true),
		flag("dotIsBurningGround"),
	},
	qualityStats = {
	},
	stats = {
	},
	levels = {
		[1] = { cost = { } },
	},
}
skills["InfernalLegion"] = {
	name = "Infernal Legion",
	hidden = true,
	color = 4,
	baseFlags = {
		spell = true,
		area = true,
	},
	skillTypes = { [SkillType.DamageOverTime] = true, [SkillType.CausesBurning] = true },
	baseMods = {
		skill("FireDot", 1, { type = "Multiplier", var = "InfernalLegionBaseDamage" }),
		skill("dotIsArea", true),
	},
	qualityStats = {
	},
	stats = {
	},
	levels = {
		[1] = { cost = { } },
	},
}

skills["GuardianSentinelFireAura"] = {
	name = "Burning Aura",
	hidden = true,
	color = 4,
	baseFlags = {
		spell = true,
		area = true,
	},
	skillTypes = { [SkillType.DamageOverTime] = true, [SkillType.CausesBurning] = true },
	baseMods = {
		skill("FireDot", 1, { type = "Multiplier", var = "GuardianSentinelFireAuraBaseDamage" }, { type = "PercentStat", stat = "Life", percent = 1}),
		skill("dotIsArea", true),
		skill("radius", 1, { type = "Multiplier", var = "GuardianSentinelFireAuraRadius" }),
	},
	qualityStats = {
	},
	stats = {
	},
	levels = {
		[1] = { cost = { } },
	},
}

#skill MeleeAtAnimationSpeedUnique Default Attack
#flags attack melee projectile
#mods

#skill SummonedReaperMelee Default Attack
#flags attack melee projectile
#mods

#skill SummonedReaperUltimate Ultimate
#flags attack area melee
#mods

#skill GASummonReaperUltimateLeftSlash Ultimate Slash
#flags attack area
#mods

#skill GASummonReaperComboWhirl Whirl
#flags attack area
#mods

#skill GASummonReaperComboLeftSlash Combo Slash
#flags attack area
#mods

#skill ReaperConsumeMinionForBuff Consume
#flags spell
#baseMod mod("MinionModifier", "LIST", { mod = mod("Speed", "INC", 40) }, 0, 0, { type = "SkillName", skillName = "Summon Reaper", includeTransfigured = true }, { type = "GlobalEffect", effectType = "Buff" })
#baseMod mod("MinionModifier", "LIST", { mod = mod("MovementSpeed", "INC", 40) }, 0, 0, { type = "SkillName", skillName = "Summon Reaper", includeTransfigured = true }, { type = "GlobalEffect", effectType = "Buff" })
#baseMod mod("MinionModifier", "LIST", { mod = mod("AreaOfEffect", "INC", 30) }, 0, 0, { type = "SkillName", skillName = "Summon Reaper", includeTransfigured = true }, { type = "GlobalEffect", effectType = "Buff" })
#baseMod skill("buffAllies", true)
#mods

#skill MPWExpeditionSummonedArbalestProjectile Projectile Attack
#flags attack projectile
#mods

#skill BlinkMirrorArrowMelee Projectile Attack
#flags attack projectile
#mods

#skill RainOfArrowsCloneShot Rain of Arrow
#flags attack projectile area
#baseMod skill("radius", 10)
#baseMod flag("OneShotProj")
#mods

#skill ElementalHitCloneShot Elemental Hit
#flags attack projectile melee
#mods

#skill SumonRagingSpiritMelee Melee
#flags attack melee
#mods

#skill AnimateGuardianSmite Smite
#flags attack melee area
#mods

#skill ElderTentacleMinionProjectileDeepcaller Projectile Spell
#flags spell projectile
#mods

#skill SummonedLivingLightningZap
#flags attack melee
#mods