Skip to content

Commit

Permalink
Actually Fix Critical Issue with Rage Gain [M]
Browse files Browse the repository at this point in the history
  • Loading branch information
Batfoxkid committed Mar 23, 2024
1 parent d72412d commit e27bd4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/freak_fortress_2/events.sp
Original file line number Diff line number Diff line change
Expand Up @@ -333,18 +333,18 @@ public Action Events_PlayerHurt(Event event, const char[] name, bool dontBroadca

if(Client(victim).IsBoss)
{
float rage = Client(victim).RageDamage;
if(rage > 0.0)
float ragedmg = Client(victim).RageDamage;
if(ragedmg > 0.0)
{
rage = Client(victim).GetCharge(0);
float rage = Client(victim).GetCharge(0);
float maxrage = Client(victim).RageMax;
if(rage < maxrage)
{
float debuff = Client(victim).RageDebuff;
if(debuff != 1.0)
Client(victim).RageDebuff = 1.0;

rage = (damage * 100.0 * debuff / rage);
rage += (damage * 100.0 * debuff / ragedmg);
if(rage > maxrage)
rage = maxrage;

Expand Down

0 comments on commit e27bd4d

Please sign in to comment.