mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
feat: add ABSORB and RESIST combat text types for spell misses
Adds dedicated CombatTextEntry::Type entries for ABSORB (miss type 7) and RESIST (miss type 8), replacing the generic MISS display. Updates missTypes arrays in SMSG_SPELLLOGMISS and SMSG_SPELL_GO, and adds light-blue "Absorb" and grey "Resist" rendering in the combat text overlay.
This commit is contained in:
parent
d5196abaec
commit
e902375763
3 changed files with 13 additions and 5 deletions
|
|
@ -2433,8 +2433,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
CombatTextEntry::MISS, // 4=EVADE
|
||||
CombatTextEntry::IMMUNE, // 5=IMMUNE
|
||||
CombatTextEntry::MISS, // 6=DEFLECT
|
||||
CombatTextEntry::MISS, // 7=ABSORB
|
||||
CombatTextEntry::MISS, // 8=RESIST
|
||||
CombatTextEntry::ABSORB, // 7=ABSORB
|
||||
CombatTextEntry::RESIST, // 8=RESIST
|
||||
};
|
||||
CombatTextEntry::Type ct = (missInfo < 9) ? missTypes[missInfo] : CombatTextEntry::MISS;
|
||||
addCombatText(ct, 0, 0, true);
|
||||
|
|
@ -13967,8 +13967,8 @@ void GameHandler::handleSpellGo(network::Packet& packet) {
|
|||
CombatTextEntry::MISS, // 4=EVADE
|
||||
CombatTextEntry::IMMUNE, // 5=IMMUNE
|
||||
CombatTextEntry::MISS, // 6=DEFLECT
|
||||
CombatTextEntry::MISS, // 7=ABSORB
|
||||
CombatTextEntry::MISS, // 8=RESIST
|
||||
CombatTextEntry::ABSORB, // 7=ABSORB
|
||||
CombatTextEntry::RESIST, // 8=RESIST
|
||||
};
|
||||
// Show text for each miss (usually just 1 target per spell go)
|
||||
for (const auto& m : data.missTargets) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue