Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: (Draft) Add support for Shaman on vanilla cross faction servers #28

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
11 changes: 7 additions & 4 deletions PallyPowerValues.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ C_ChatInfo.RegisterAddonMessagePrefix(PallyPower.commPrefix)

PallyPower.petsShareBaseClass = PallyPower.isBCC or PallyPower.isWrath

PALLYPOWER_MAXCLASSES = PallyPower.isWrath and 10 or 9
PALLYPOWER_MAXCLASSES = PallyPower.isBCC and 9 or 10
PALLYPOWER_MAXPERCLASS = 15
PALLYPOWER_NORMALBLESSINGDURATION = (PallyPower.isBCC or PallyPower.isWrath) and (10 * 60) or (5 * 60)
PALLYPOWER_GREATERBLESSINGDURATION = (PallyPower.isBCC or PallyPower.isWrath) and (30 * 60) or (15 * 60)
Expand Down Expand Up @@ -163,7 +163,8 @@ PallyPower.ClassID = PallyPower.isWrath and {
[6] = "HUNTER",
[7] = "MAGE",
[8] = "WARLOCK",
[9] = "PET"
[9] = "SHAMAN",
[10] = "PET",
}

PallyPower.ClassToID = PallyPower.isWrath and {
Expand Down Expand Up @@ -196,7 +197,8 @@ PallyPower.ClassToID = PallyPower.isWrath and {
["HUNTER"] = 6,
["MAGE"] = 7,
["WARLOCK"] = 8,
["PET"] = 9
["SHAMAN"] = 9,
["PET"] = 10,
}

PallyPower.ClassIcons = PallyPower.isWrath and {
Expand Down Expand Up @@ -229,7 +231,8 @@ PallyPower.ClassIcons = PallyPower.isWrath and {
[6] = "Interface\\Icons\\ClassIcon_Hunter",
[7] = "Interface\\Icons\\ClassIcon_Mage",
[8] = "Interface\\Icons\\ClassIcon_Warlock",
[9] = "Interface\\Icons\\Ability_Mount_JungleTiger"
[9] = "Interface\\Icons\\ClassIcon_Shaman",
[10] = "Interface\\Icons\\Ability_Mount_JungleTiger",
}

PallyPower.BlessingIcons = PallyPower.isWrath and {
Expand Down
22 changes: 20 additions & 2 deletions PallyPower_Vanilla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1458,12 +1458,21 @@
</Anchor>
</Anchors>
</Button>
<Button name = "$parentClass10" inherits = "BuffGridButtonTemplate">
<Anchors>
<Anchor point = "TOPLEFT" relativeTo = "$parentClass9" relativePoint = "TOPRIGHT">
<Offset>
<AbsDimension x = "2" y = "0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
</Frames>
</Frame>

<Frame name = "PallyPowerBlessingsFrame" hidden = "true" toplevel = "true" frameStrata = "HIGH" enableMouse = "true" movable = "true" parent = "UIParent">
<Size>
<AbsDimension x = "1010" y = "1200"/>
<AbsDimension x = "1110" y = "1200"/>
</Size>
<Anchors>
<Anchor point = "TOPLEFT" relativeTo = "UIParent" relativePoint = "BOTTOMLEFT">
Expand Down Expand Up @@ -1620,6 +1629,15 @@
</Anchor>
</Anchors>
</Frame>
<Frame name = "$parentClassGroup10" inherits = "ClassGroupTemplate">
<Anchors>
<Anchor point = "TOPLEFT" relativeTo = "$parentClassGroup9" relativePoint = "TOPRIGHT">
<Offset>
<AbsDimension x = "2" y = "0"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
<Frame name = "$parentPlayer1" inherits = "UserTemplate">
<Anchors>
<Anchor point = "TOPLEFT">
Expand Down Expand Up @@ -1819,7 +1837,7 @@
GameTooltip:Hide(self, motion);
</OnLeave>
</Scripts>
</Button>
</Button>
<Button name = "$parentPreset" inherits = "GameMenuButtonTemplate" text = "PALLYPOWER_PRESET" hidden = "false">
<Size>
<AbsDimension x = "100" y = "20"/>
Expand Down