Skip to content

Commit

Permalink
Warlock Stone Fixes / Target Buffing Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Softrix committed Oct 9, 2022
1 parent acc0d2a commit 1d00f70
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 58 deletions.
123 changes: 90 additions & 33 deletions SmartBuff.buffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,40 @@ function SMARTBUFF_InitItemList()
SMARTBUFF_SYMBOLOFKINGS = GetItemInfo(21177); -- Symbol of Kings

-- Stones and oils etc.
SMARTBUFF_HEALTHSTONEGEM1 = GetItemInfo(5512); -- Healthstone Rank 1
SMARTBUFF_HEALTHSTONEGEM2 = GetItemInfo(5511); -- Healthstone Rank 2
SMARTBUFF_HEALTHSTONEGEM3 = GetItemInfo(5509); -- Healthstone Rank 3
SMARTBUFF_HEALTHSTONEGEM4 = GetItemInfo(5510); -- Healthstone Rank 4
SMARTBUFF_HEALTHSTONEGEM5 = GetItemInfo(9421); -- Healthstone Rank 5
SMARTBUFF_HEALTHSTONEGEM6 = GetItemInfo(22103); -- Healthstone Rank 6
SMARTBUFF_HEALTHSTONEGEM7 = GetItemInfo(36889); -- Healthstone Rank 7
SMARTBUFF_HEALTHSTONEGEM8 = GetItemInfo(36892); -- Healthstone Rank 8
SMARTBUFF_SOULSTONEGEM1 = GetItemInfo(5232); -- Soulstone Rank 1
SMARTBUFF_SOULSTONEGEM2 = GetItemInfo(16892); -- Soulstone Rank 2
SMARTBUFF_SOULSTONEGEM3 = GetItemInfo(16893); -- Soulstone Rank 3
SMARTBUFF_SOULSTONEGEM4 = GetItemInfo(16895); -- Soulstone Rank 4
SMARTBUFF_SOULSTONEGEM5 = GetItemInfo(16896); -- Soulstone Rank 5
SMARTBUFF_SOULSTONEGEM6 = GetItemInfo(22116); -- Soulstone Rank 6
SMARTBUFF_SOULSTONEGEM7 = GetItemInfo(36895); -- Soulstone Rank 7
SMARTBUFF_LOCKSPELLSTONE1 = GetItemInfo(41191); -- Warlock Spellstone 1
SMARTBUFF_LOCKSPELLSTONE2 = GetItemInfo(41192); -- Warlock Spellstone 2
SMARTBUFF_LOCKSPELLSTONE3 = GetItemInfo(41193); -- Warlock Spellstone 3
SMARTBUFF_LOCKSPELLSTONE4 = GetItemInfo(41194); -- Warlock Spellstone 4
SMARTBUFF_LOCKSPELLSTONE5 = GetItemInfo(41195); -- Warlock Spellstone 5
SMARTBUFF_LOCKSPELLSTONE6 = GetItemInfo(41196); -- Warlock Spellstone 6
SMARTBUFF_LOCKFIRESTONE1 = GetItemInfo(41170); -- Warlock Firestone 1
SMARTBUFF_LOCKFIRESTONE2 = GetItemInfo(41169); -- Warlock Firestone 2
SMARTBUFF_LOCKFIRESTONE3 = GetItemInfo(41171); -- Warlock Firestone 3
SMARTBUFF_LOCKFIRESTONE4 = GetItemInfo(41172); -- Warlock Firestone 4
SMARTBUFF_LOCKFIRESTONE5 = GetItemInfo(40773); -- Warlock Firestone 5
SMARTBUFF_LOCKFIRESTONE6 = GetItemInfo(41173); -- Warlock Firestone 6
SMARTBUFF_LOCKFIRESTONE7 = GetItemInfo(41174); -- Warlock Firestone 7
SMARTBUFF_LESSERMANAOIL = GetItemInfo(20747); -- Lesser Mana Oil
SMARTBUFF_BRILLIANTMANAOIL = GetItemInfo(20748); -- Brilliant Mana Oil
SMARTBUFF_BRILLIANTWIZARDOIL = GetItemInfo(20749); -- Brilliant Wizard Oil
SMARTBUFF_SUPERIORMANAOIL = GetItemInfo(22521); -- Brilliant Mana Oil
SMARTBUFF_SUPERIORWIZARDOIL = GetItemInfo(22522); -- Superior Wizard Oil
SMARTBUFF_EXCEPTIONALWIZARDOIL = GetItemInfo(36900); -- Exceptional Wizard Oil
SMARTBUFF_LOCKSPELLSTONE1 = GetItemInfo(41192); -- Warlock Create Spellstone 1
SMARTBUFF_LOCKSPELLSTONE2 = GetItemInfo(41193); -- Warlock Create Spellstone 2
SMARTBUFF_LOCKSPELLSTONE3 = GetItemInfo(41194); -- Warlock Create Spellstone 3
SMARTBUFF_LOCKSPELLSTONE4 = GetItemInfo(41195); -- Warlock Create Spellstone 4
SMARTBUFF_LOCKSPELLSTONE5 = GetItemInfo(41196); -- Warlock Create Spellstone 5

SMARTBUFF_EXCEPTIONALWIZARDOIL = GetItemInfo(36900); -- Exceptional Wizard Oil
SMARTBUFF_OILOFIMMOLATION = GetItemInfo(8956); -- Oil of Immolation
SMARTBUFF_SOLIDWSTONE = GetItemInfo(7965); -- Solid Weighstone
SMARTBUFF_SOLIDSSTONE = GetItemInfo(7964); -- Solid Sharpening Stone
Expand Down Expand Up @@ -346,6 +368,7 @@ function SMARTBUFF_InitSpellIDs()
SMARTBUFF_SHADOWWARD = GetSpellInfo(6229); --"Shadow Ward"
SMARTBUFF_DARKPACT = GetSpellInfo(18220); --"Dark Pact"
SMARTBUFF_LIFETAP = GetSpellInfo(1454); --"Life Tap"

SMARTBUFF_CREATEHSMIN = GetSpellInfo(6201); --"Create Healthstone (Minor)"
SMARTBUFF_CREATEHSLES = GetSpellInfo(6202); --"Create Healthstone (Lesser)"
SMARTBUFF_CREATEHS = GetSpellInfo(5699); --"Create Healthstone"
Expand All @@ -354,18 +377,32 @@ function SMARTBUFF_InitSpellIDs()
SMARTBUFF_CREATEHSMAS = GetSpellInfo(27230); --"Create Healthstone (Master)"
SMARTBUFF_CREATEHSDEM = GetSpellInfo(47871); --"Create Healthstone (Demonic)"
SMARTBUFF_CREATEHSFEL = GetSpellInfo(47878); --"Create Healthstone (Fel)"
SMARTBUFF_SOULSTONE = GetSpellInfo(20707); --"Soulstone"

SMARTBUFF_CREATESSMIN = GetSpellInfo(693); --"Create Soulstone (Minor)"
SMARTBUFF_CREATESSLES = GetSpellInfo(20752); --"Create Soulstone (Lesser)"
SMARTBUFF_CREATESS = GetSpellInfo(20755); --"Create Soulstone"
SMARTBUFF_CREATESSGRE = GetSpellInfo(20756); --"Create Soulstone (Greater)"
SMARTBUFF_CREATESSMAJ = GetSpellInfo(20757); --"Create Soulstone (Major)"
SMARTBUFF_CREATESSMAS = GetSpellInfo(27238); --"Create Soulstone (Master)"
SMARTBUFF_CREATESSDEM = GetSpellInfo(47884); --"Create Soulstone (Demonic)"

SMARTBUFF_CREATESPSTONE1 = GetSpellInfo(2362); --"Create Spellstone Rank 1"
SMARTBUFF_CREATESPSTONE2 = GetSpellInfo(17727); --"Create Spellstone Rank 2"
SMARTBUFF_CREATESPSTONE3 = GetSpellInfo(17728); --"Create Spellstone Rank 3"
SMARTBUFF_CREATESPSTONE4 = GetSpellInfo(28172); --"Create Spellstone Rank 4"
SMARTBUFF_CREATESPSTONE5 = GetSpellInfo(47886); --"Create Spellstone Rank 5"
SMARTBUFF_CREATESPSTONE6 = GetSpellInfo(47888); --"Create Spellstone Rank 6"

SMARTBUFF_CREATEFSTONE1 = GetSpellInfo(6366); --"Create Firestone Rank 1"
SMARTBUFF_CREATEFSTONE2 = GetSpellInfo(17951); --"Create Firestone Rank 2"
SMARTBUFF_CREATEFSTONE3 = GetSpellInfo(17952); --"Create Firestone Rank 3"
SMARTBUFF_CREATEFSTONE4 = GetSpellInfo(17953); --"Create Firestone Rank 4"
SMARTBUFF_CREATEFSTONE5 = GetSpellInfo(27250); --"Create Firestone Rank 5"
SMARTBUFF_CREATEFSTONE6 = GetSpellInfo(60219); --"Create Firestone Rank 6"
SMARTBUFF_CREATEFSTONE7 = GetSpellInfo(60220); --"Create Firestone Rank 7"

-- Warlock chained
S.ChainWarlockArmor = { SMARTBUFF_DEMONSKIN, SMARTBUFF_DEMONARMOR, SMARTBUFF_FELARMOR };


-- Hunter
SMARTBUFF_TRUESHOTAURA = GetSpellInfo(19506); --"Trueshot Aura"
Expand Down Expand Up @@ -676,34 +713,54 @@ function SMARTBUFF_InitSpellList()
{SMARTBUFF_SHADOWWARD, 0.5, SMARTBUFF_CONST_SELF},
{SMARTBUFF_DARKPACT, 0.5, SMARTBUFF_CONST_SELF},
{SMARTBUFF_SOULSTONE, 15, SMARTBUFF_CONST_GROUP, {18}, "WARRIOR;DRUID;SHAMAN;HUNTER;ROGUE;MAGE;PRIEST;PALADIN;WARLOCK;DEATHKNIGHT;MONK;DEMONHUNTER;HPET;WPET;DKPET"},
{SMARTBUFF_CREATEHSMAJ, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSGRE, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSLES, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSMIN, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSMAS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSDEM, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATEHSFEL, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM},
{SMARTBUFF_CREATESSMAJ, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESSGRE, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESSLES, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESSMIN, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESSMAS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},
{SMARTBUFF_CREATESSDEM, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM},

-- healthstones.
{SMARTBUFF_CREATEHSMIN, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM1},
{SMARTBUFF_CREATEHSLES, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM2},
{SMARTBUFF_CREATEHS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM3},
{SMARTBUFF_CREATEHSGRE, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM4},
{SMARTBUFF_CREATEHSMAJ, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM5},
{SMARTBUFF_CREATEHSMAS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM6},
{SMARTBUFF_CREATEHSDEM, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM7},
{SMARTBUFF_CREATEHSFEL, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_HEALTHSTONEGEM8},
-- soulstones.
{SMARTBUFF_CREATESSMIN, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM1},
{SMARTBUFF_CREATESSLES, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM2},
{SMARTBUFF_CREATESS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM3},
{SMARTBUFF_CREATESSGRE, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM4},
{SMARTBUFF_CREATESSMAJ, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM5},
{SMARTBUFF_CREATESSMAS, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM6},
{SMARTBUFF_CREATESSDEM, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_SOULSTONEGEM7},
-- spellstones.
{SMARTBUFF_CREATESPSTONE1, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE1},
{SMARTBUFF_CREATESPSTONE2, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE2},
{SMARTBUFF_CREATESPSTONE3, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE3},
{SMARTBUFF_CREATESPSTONE4, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE4},
{SMARTBUFF_CREATESPSTONE5, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE5},
{SMARTBUFF_CREATESPSTONE6, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKSPELLSTONE6},
{SMARTBUFF_LOCKSPELLSTONE6, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKSPELLSTONE5, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKSPELLSTONE4, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKSPELLSTONE3, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKSPELLSTONE2, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKSPELLSTONE1, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE7, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE6, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE5, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE4, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE3, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE2, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_FIRESTONE1, 60, SMARTBUFF_CONST_INV}
};
{SMARTBUFF_LOCKSPELLSTONE1, 60, SMARTBUFF_CONST_INV},
-- firestones.
{SMARTBUFF_CREATEFSTONE1, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE1},
{SMARTBUFF_CREATEFSTONE2, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE2},
{SMARTBUFF_CREATEFSTONE3, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE3},
{SMARTBUFF_CREATEFSTONE4, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE4},
{SMARTBUFF_CREATEFSTONE5, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE5},
{SMARTBUFF_CREATEFSTONE6, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE6},
{SMARTBUFF_CREATEFSTONE7, 0.03, SMARTBUFF_CONST_ITEM, nil, SMARTBUFF_LOCKFIRESTONE7},
{SMARTBUFF_LOCKFIRESTONE7, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE6, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE5, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE4, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE3, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE2, 60, SMARTBUFF_CONST_INV},
{SMARTBUFF_LOCKFIRESTONE1, 60, SMARTBUFF_CONST_INV},

};
end

-- Hunter
Expand Down
Loading

0 comments on commit 1d00f70

Please sign in to comment.