Quantcast
local OVALE, Ovale = ...
local OvaleScripts = Ovale.OvaleScripts

do
	local name = "ovale_common"
	local desc = "[6.0.2] Ovale: Common spell definitions"
	local code = [[
# Common spell definitions shared by all classes and specializations.

###
### Potions
###

#  Mists of Pandaria
Define(golemblood_potion 58146)
Define(golemblood_potion_buff 79634)
	SpellInfo(golemblood_potion_buff duration=25)
Define(jade_serpent_potion 76093)
Define(jade_serpent_potion_buff 105702)
	SpellInfo(jade_serpent_potion_buff duration=25)
Define(master_mana_potion 76098)
Define(mogu_power_potion 76095)
Define(mogu_power_potion_buff 105706)
	SpellInfo(mogu_power_potion_buff duration=25)
Define(mountains_potion 76090)
Define(mountains_potion_buff 105698)
	SpellInfo(mountains_potion_buff duration=25)
Define(virmens_bite_potion 76089)
Define(virmens_bite_potion_buff 105697)
	SpellInfo(virmens_bite_potion_buff duration=25)

# Warlords of Draenor
Define(draenic_agility_potion 109217)
Define(draenic_agility_potion_buff 156423)
	SpellInfo(draenic_agility_potion_buff duration=25)
Define(draenic_armor_potion 109220)
Define(draenic_armor_potion_buff 156430)
	SpellInfo(draenic_armor_potion_buff duration=25)
Define(draenic_intellect_potion 109218)
Define(draenic_intellect_potion_buff 156426)
	SpellInfo(draenic_intellect_potion_buff duration=25)
Define(draenic_mana_potion 109222)
Define(draenic_strength_potion 109219)
Define(draenic_strength_potion_buff 156428)
	SpellInfo(draenic_strength_potion_buff duration=25)

SpellList(potion_agility_buff draenic_agility_potion_buff virmens_bite_potion_buff)
SpellList(potion_armor_buff draenic_armor_potion_buff mountains_potion_buff)
SpellList(potion_intellect_buff draenic_intellect_potion_buff jade_serpent_potion_buff)
SpellList(potion_strength_buff draenic_strength_potion_buff golemblood_potion_buff)

###
### Trinkets (Mists of Pandaria only)
###

# Agility
	SpellInfo(126554 buff_cd=55)				# Bottle of Infinite Stars
	SpellInfo(126690 buff_cd=60)				# PvP agility trinket (on-use)
	SpellInfo(126707 buff_cd=55)				# PvP agility trinket (proc)
	SpellInfo(126708 buff_cd=55)				# PvP agility trinket (proc)
	SpellInfo(128984 buff_cd=55)				# Relic of Xuen (agility)
	SpellInfo(138699 buff_cd=115)				# Vicious Talisman of the Shado-Pan Assault
	SpellInfo(138756 buff_cd=50 max_stacks=10)	# Renataki's Soul Charm
	SpellInfo(138938 buff_cd=55)				# Bad Juju
	SpellInfo(146308 buff_cd=115)				# Assurance of Consequence
	SpellInfo(146310 buff_cd=60)				# Ticking Ebon Detonator
	SpellInfo(148896 buff_cd=85)				# Sigil of Rampage
	SpellInfo(148903 buff_cd=65)				# Haromm's Talisman
	SpellInfo(177597 buff_cd=120)				# Lucky Double-Sided Coin (on-use)

# Bonus armor
	SpellInfo(176873 buff_cd=120)				# Tablet of Turnbuckle Teamwork (on-use)
	SpellInfo(177055 buff_cd=65)				# Evergaze Arcane Eidolon

# Critical Strike
	SpellInfo(138963 buff_cd=110)				# Unerring Vision of Lei-Shen
	SpellInfo(138963 buff_cd=165 specialization=balance)	# UVLS adjustment for balance druids
	SpellInfo(146285 buff_cd=65 max_stacks=20)	# Skeer's Bloodsoaked Talisman
	SpellInfo(162916 buff_cd=115)				# Skull of War
	SpellInfo(162918 buff_cd=115)				# Knight's Badge
	SpellInfo(162920 buff_cd=115)				# Sandman's Pouch
	SpellInfo(165532 buff_cd=120)				# Bonemaw's Big Toe (on-use)
	SpellInfo(165532 buff_cd=120)				# Voidmender's Shadowgem (on-use)
	SpellInfo(176979 buff_cd=65)				# Immaculate Living Mushroom
	SpellInfo(176983 buff_cd=65)				# Stoneheart Idol
	SpellInfo(177041 buff_cd=65)				# Tectus' Beating Heart
	SpellInfo(177047 buff_cd=65)				# Goren Soul Repository
	SpellInfo(177071 buff_cd=65 max_stacks=20)	# Humming Blackiron Trigger

# Haste
	SpellInfo(165531 buff_cd=120)				# Fleshrender's Meathook (on-use)
	SpellInfo(165821 buff_cd=65)				# Munificent Bonds of Fury
	SpellInfo(165821 buff_cd=65)				# Spores of Alacrity
	SpellInfo(165821 buff_cd=65)				# Witherbark's Branch
	SpellInfo(176875 buff_cd=120)				# Shards of Nothing (on-use)
	SpellInfo(176879 buff_cd=120)				# Emblem of Caustic Healing (on-use)
	SpellInfo(176882 buff_cd=120)				# Turbulent Focusing Crystal (on-use)
	SpellInfo(176885 buff_cd=90)				# Turbulent Seal of Defiance (on-use)
	SpellInfo(176938 buff_cd=65)				# Formidable Relic of Blood
	SpellInfo(176944 buff_cd=65)				# Formidable Censer of Faith
	SpellInfo(176981 buff_cd=65)				# Furyheart Talisman
	SpellInfo(177036 buff_cd=65)				# Meaty Dragonspine Trophy
	SpellInfo(177052 buff_cd=65)				# Darmac's Unstable Talisman
	SpellInfo(177090 buff_cd=65 max_stacks=20)	# Auto-Repairing Autoclave
	SpellInfo(177104 buff_cd=65 max_stacks=20)	# Battering Talisman

# Intellect
	SpellInfo(126577 buff_cd=55)				# Light of the Cosmos
	SpellInfo(126683 buff_cd=60)				# PvP intellect trinket (on-use)
	SpellInfo(126705 buff_cd=55)				# PvP intellect trinket (proc)
	SpellInfo(126706 buff_cd=55)				# PvP intellect trinket (proc)
	SpellInfo(128985 buff_cd=55)				# Relic of Yu'lon
	SpellInfo(136082 buff_cd=60)				# Shock-Charger/Static-Caster's Medallion
	SpellInfo(138786 buff_cd=50 max_stacks=10)	# Wushoolay's Final Choice
	SpellInfo(138898 buff_cd=55)				# Breath of the Hydra
	SpellInfo(139133 buff_cd=55)				# Cha-Ye's Essence of Brilliance (assume 20% crit chance)
	SpellInfo(146046 buff_cd=115)				# Purified Bindings of Immerseus
	SpellInfo(146184 buff_cd=65 max_stacks=10)	# Black Blood of Y'Shaarj
	SpellInfo(148897 buff_cd=85)				# Frenzied Crystal of Rage
	SpellInfo(148906 buff_cd=65)				# Kardris' Toxic Totem

# Mastery
	SpellInfo(165485 buff_cd=120)				# Kihra's Adrenaline Injector (on-use)
	SpellInfo(165535 buff_cd=90)				# Kyrak's Vileblood Serum (on-use)
	SpellInfo(165535 buff_cd=90)				# Tharbek's Lucky Pebble (on-use)
	SpellInfo(165825 buff_cd=65)				# Munificent Censer of Tranquility
	SpellInfo(165825 buff_cd=65)				# Xeri'tac's Unhatched Egg Sac
	SpellInfo(165835 buff_cd=65)				# Munificent Emblem of Terror
	SpellInfo(176876 buff_cd=120)				# Pol's Blinded Eye (on-use)
	SpellInfo(176883 buff_cd=90)				# Turbulent Vial of Toxin (on-use)
	SpellInfo(176884 buff_cd=90)				# Turbulent Relic of Mendacity (on-use)
	SpellInfo(176940 buff_cd=65)				# Formidable Jar of Doom
	SpellInfo(176942 buff_cd=65)				# Formidable Orb of Putrescence
	SpellInfo(177044 buff_cd=65)				# Horn of Screaming Spirits
	SpellInfo(177057 buff_cd=65)				# Blast Furnace Door

# Multistrike
	SpellInfo(165542 buff_cd=90)				# Gor'ashan's Lodestone Spike (on-use)
	SpellInfo(165838 buff_cd=65)				# Coagulated Genesaur Blood
	SpellInfo(165840 buff_cd=65)				# Munificent Soul of Compassion
	SpellInfo(176874 buff_cd=120)				# Vial of Convulsive Shadows
	SpellInfo(176878 buff_cd=120)				# Beating Heart of the Mountain (on-use)
	SpellInfo(176881 buff_cd=120)				# Turbulent Emblem (on-use)
	SpellInfo(176936 buff_cd=65)				# Formidable Fang
	SpellInfo(176987 buff_cd=65)				# Blackheart Enforcer's Medallion
	SpellInfo(177039 buff_cd=65)				# Scales of Doom
	SpellInfo(177064 buff_cd=65)				# Elementalist's Shielding Talisman
	SpellInfo(177085 buff_cd=65 max_stacks=20)	# Blackiron Micro Crucible
	SpellInfo(177098 buff_cd=65 max_stacks=20)	# Forgemaster's Insignia

# Spellpower
	SpellInfo(177594 buff_cd=120)				# Copeland's Clarity (on-use)

# Spirit
	SpellInfo(162914 buff_cd=115)				# Winged Hourglass
	SpellInfo(177062 buff_cd=65)				# Ironspike Chew Toy

# Strength
	SpellInfo(126582 buff_cd=55)				# Lei Shen's Final Orders
	SpellInfo(126679 buff_cd=60)				# PvP strength trinket (on-use)
	SpellInfo(126700 buff_cd=55)				# PvP strength trinket (proc)
	SpellInfo(126702 buff_cd=55)				# PvP strength trinket (proc)
	SpellInfo(128986 buff_cd=55)				# Relic of Xuen (strength)
	SpellInfo(138702 buff_cd=85)				# Brutal Talisman of the Shado-Pan Assault
	SpellInfo(138759 buff_cd=50 max_stacks=10)	# Fabled Feather of Ji-Kun
	SpellInfo(138870 buff_cd=17 max_stacks=5)	# Primordius' Talisman of Rage
	SpellInfo(146245 buff_cd=55)				# Evil Eye of Galakras
	SpellInfo(146250 buff_cd=115)				# Thok's Tail Tip
	SpellInfo(148899 buff_cd=85)				# Fusion-Fire Core
	SpellInfo(177189 buff_cd=90)				# Scabbard of Kyanos

# Versatility
	SpellInfo(165534 buff_cd=120)				# Enforcer's Stun Grenade (on-use)
	SpellInfo(165543 buff_cd=90)				# Emberscale Talisman (on-use)
	SpellInfo(165543 buff_cd=90)				# Ragewing's Firefang (on-use)
	SpellInfo(165840 buff_cd=65)				# Leaf of the Ancient Protectors
	SpellInfo(165840 buff_cd=65)				# Munificent Orb of Ice
	SpellInfo(176976 buff_cd=65)				# Mote of the Mountain

# Amplification trinket passive buff.
Define(amplified_buff 146051)

# Cooldown reduction trinket passive buffs.
Define(cooldown_reduction_agility_buff 146019)
Define(cooldown_reduction_strength_buff 145955)
Define(cooldown_reduction_tank_buff 146025)

###
### Legendary Meta Gem
###

Define(lucidity_druid_buff 137247)
	SpellInfo(lucidity_druid_buff duration=4)
Define(lucidity_monk_buff 137331)
	SpellInfo(lucidity_monk_buff duration=4)
Define(lucidity_paladin_buff 137288)
	SpellInfo(lucidity_paladin_buff duration=4)
Define(lucidity_priest_buff 137323)
	SpellInfo(lucidity_priest_buff duration=4)
Define(lucidity_shaman_buff 137326)
	SpellInfo(lucidity_shaman_buff duration=4)
Define(tempus_repit_buff 137590)
	SpellInfo(tempus_repit_buff duration=10)

###
### Legendary ring
###

Define(archmages_greater_incandescence_agi_buff 177172)
	SpellInfo(archmages_greater_incandescence_agi_buff duration=10)
Define(archmages_incandescence_agi_buff 177161)
	SpellInfo(archmages_incandescence_agi_buff duration=10)
Define(archmages_greater_incandescence_int_buff 177176)
	SpellInfo(archmages_greater_incandescence_int_buff duration=10)
Define(archmages_incandescence_int_buff 177159)
	SpellInfo(archmages_incandescence_int_buff duration=10)
Define(archmages_greater_incandescence_str_buff 177175)
	SpellInfo(archmages_greater_incandescence_str_buff duration=10)
Define(archmages_incandescence_str_buff 177160)
	SpellInfo(archmages_incandescence_str_buff duration=10)

###
### Racials
###

Define(arcane_torrent_chi 129597)
	SpellInfo(arcane_torrent_chi cd=120 chi=-1)
Define(arcane_torrent_energy 25046)
	SpellInfo(arcane_torrent_energy cd=120 energy=-15)
Define(arcane_torrent_focus 80483)
	SpellInfo(arcane_torrent_focus cd=120 focus=-15)
Define(arcane_torrent_holy 155145)
	SpellInfo(arcane_torrent_holy cd=120 holy=-1)
Define(arcane_torrent_mana 28730)
	SpellInfo(arcane_torrent_mana cd=120)
Define(arcane_torrent_rage 69179)
	SpellInfo(arcane_torrent_rage cd=120 rage=-15)
Define(arcane_torrent_runicpower 50613)
	SpellInfo(arcane_torrent_runicpower cd=120 runicpower=-20)
Define(berserking 26297)
	SpellInfo(berserking cd=180)
	SpellAddBuff(berserking berserking_buff=1)
Define(berserking_buff 26297)
	SpellInfo(berserking_buff duration=10)
Define(blood_fury_ap 20572)
	SpellInfo(blood_fury_ap cd=120)
	SpellAddBuff(blood_fury_ap blood_fury_ap_buff=1)
Define(blood_fury_ap_buff 20572)
	SpellInfo(blood_fury_ap_buff duration=15)
Define(blood_fury_apsp 33697)
	SpellInfo(blood_fury_apsp cd=120)
	SpellAddBuff(blood_fury_apsp blood_fury_apsp_buff=1)
Define(blood_fury_apsp_buff 33697)
	SpellInfo(blood_fury_apsp_buff duration=15)
Define(blood_fury_sp 33702)
	SpellInfo(blood_fury_sp cd=120)
	SpellAddBuff(blood_fury_sp blood_fury_sp_buff=1)
Define(blood_fury_sp_buff 33702)
	SpellInfo(blood_fury_sp_buff duration=15)
Define(quaking_palm 107079)
	SpellInfo(quaking_palm cd=120 interrupt=1)
Define(rocket_barrage 69041)
	SpellInfo(rocket_barrage cd=120)
Define(shadowmeld 58984)
	SpellInfo(shadowmeld cd=120)
	SpellAddBuff(shadowmeld shadowmeld_buff=1)
Define(shadowmeld_buff 58984)
Define(stoneform 20594)
	SpellInfo(stoneform cd=120)
	SpellAddBuff(stoneform stoneform_buff=1)
Define(stoneform_buff 20594)
	SpellInfo(stoneform_buff duration=8)
Define(war_stomp 20549)
	SpellInfo(war_stomp cd=120 interrupt=1)

AddFunction UseRacialSurvivalActions
{
	Spell(stoneform)
}
]]

	OvaleScripts:RegisterScript(nil, name, desc, code, "include")
end