Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Revert "Stop hardcoding Warrior's Spirit health penalty"
Browse files Browse the repository at this point in the history
This reverts commit 0afc39d.
  • Loading branch information
winstliu committed Oct 15, 2015
1 parent 0afc39d commit 50566de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/sourcemod/scripting/tf2x10.sp
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,7 @@ public Action:Timer_DalokohX10(Handle:timer, any:userid)
new newHealth, maxHealth;
if(index == 310) //Warrior's Spirit
{
new Address:attribute = TF2Attrib_GetByName(index, "max health additive penalty");
new healthPenalty = RoundFloat(FloatAbs(TF2Attrib_GetValue(attribute))); //Absolute value this since it's negative and then make it an int
maxHealth = DALOKOH_MAXHEALTH - healthPenalty; //Warrior's Spirit has a health penalty
maxHealth = DALOKOH_MAXHEALTH - 200; //Warrior's Spirit subtracts 200 health
}
else
{
Expand Down

0 comments on commit 50566de

Please sign in to comment.