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

Addon: [1.7.57] - Added paladin Holy Power support #588

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Addons/DataToColor/DataToColor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ function DataToColor:CreateFrames()
DataToColor.uiErrorMessage = 0

Pixel(int, DataToColor:CastingInfoSpellId(DataToColor.C.unitPlayer), 53) -- SpellId being cast
Pixel(int, DataToColor:getAvgEquipmentDurability() * 100 + (GetComboPoints(DataToColor.C.unitPlayer, DataToColor.C.unitTarget) or 0), 54)
Pixel(int, DataToColor:getAvgEquipmentDurability() * 100 + ((DataToColor.C.CHARACTER_CLASS_ID == 2 and UnitPower(DataToColor.C.unitPlayer, Enum.PowerType.HolyPower) or GetComboPoints(DataToColor.C.unitPlayer, DataToColor.C.unitTarget)) or 0), 54) -- for paladin holy power or combo points

local playerBuffCount = DataToColor:populateAuraTimer(UnitBuff, DataToColor.C.unitPlayer, DataToColor.playerBuffTime)
local playerDebuffCount = DataToColor:populateAuraTimer(UnitDebuff, DataToColor.C.unitPlayer, nil)
Expand Down
2 changes: 1 addition & 1 deletion Addons/DataToColor/DataToColor.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Title: DataToColor
## Author: FreeHongKongMMO
## Notes: Displays data as colors
## Version: 1.7.56
## Version: 1.7.57
## RequiredDeps:
## OptionalDeps: Ace3, LibRangeCheck, LibClassicCasterino
## SavedVariables:
Expand Down
4 changes: 3 additions & 1 deletion Core/Requirement/RequirementFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public RequirementFactory(IServiceProvider sp, ClassConfiguration classConfig)
{ "UnholyRune", playerReader.UnholyRune },
{ "TotalRune", playerReader.MaxRune },
{ "Combo Point", playerReader.ComboPoints },
{ "Holy Power", playerReader.ComboPoints },
{ "Durability%", playerReader.AvgEquipDurability },
{ "BagCount", bagReader.BagItemCount },
{ "FoodCount", bagReader.FoodItemCount },
Expand Down Expand Up @@ -602,7 +603,8 @@ PowerType.Energy or
PowerType.RuneFrost => playerReader.FrostRune,
PowerType.RuneUnholy => playerReader.UnholyRune,
PowerType.HealthCost => playerReader.HealthCurrent,
//PowerType.ComboPoints => playerReader.ComboPoints,
PowerType.HolyPower or
PowerType.ComboPoints => playerReader.ComboPoints,
_ => throw new NotImplementedException($"{type.ToStringF()}"),
};

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ Formula: `[Keyword] [Operator] [Numeric integer value]`
| `UnholyRune` | Player current unholy runes |
| `TotalRune` | Player current runes (blood+frost+unholy+death) |
| `Combo Point` | Player current combo points on the target |
| `Holy Power` | Player current Holy Power points on the target |
| `Durability%` | Player worn equipment average durability. **0-99** value range. |
| `BagCount` | How many items in the player inventory |
| `FoodCount` | Returns the highest amount of food type, item count |
Expand Down
Loading