Skip to content

Commit

Permalink
Addon: [1.7.57] Added paladin Holy Power which count as a Combo Point.
Browse files Browse the repository at this point in the history
Core: RequirementFactory: Map Paladin Holy Power to combo point
  • Loading branch information
Xian55 committed May 15, 2024
1 parent 495c87c commit 22f7578
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
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

0 comments on commit 22f7578

Please sign in to comment.