Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Core/Units: no longer set PowerUpdate packets when gaining rage from …
Browse files Browse the repository at this point in the history
…damage taken
  • Loading branch information
Ovahlord committed Dec 11, 2023
1 parent 8613a56 commit 5b5914b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2013,6 +2013,7 @@ void Unit::AttackerStateUpdate(Unit* victim, WeaponAttackType attType, bool extr
{
damageInfo.HitInfo |= HITINFO_RAGE_GAIN;
damageInfo.RageGained = RewardRage(rageReward, true);
printf("%u\n", damageInfo.RageGained);
}
}

Expand Down Expand Up @@ -13473,7 +13474,7 @@ int32 Unit::RewardRage(uint32 baseRage, bool attacker)
}

addRage *= sWorld->getRate(RATE_POWER_RAGE_INCOME);
return ModifyPower(POWER_RAGE, static_cast<uint32>(std::ceil(addRage) * 10), !attacker);
return ModifyPower(POWER_RAGE, static_cast<uint32>(std::ceil(addRage) * 10), false);
}

void Unit::StopAttackFaction(uint32 faction_id)
Expand Down

0 comments on commit 5b5914b

Please sign in to comment.