Skip to content

Commit

Permalink
fix 'purple club' HP display, it was displaying as 100% instead of ne…
Browse files Browse the repository at this point in the history
…gative purple
  • Loading branch information
solar committed Jan 2, 2025
1 parent 5d5383c commit a05363b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/eq_packet_structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ struct ManaUpdate_Struct
struct SpawnHPUpdate_Struct2
{
/*00*/ int16 spawn_id;
/*02*/ uint8 hp; //HP Percentage
/*02*/ int8 hp; //HP Percentage
/*03*/
};

Expand Down
3 changes: 2 additions & 1 deletion zone/attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,8 @@ bool Client::Death(Mob* killerMob, int32 damage, uint16 spell, EQ::skills::Skill
damage,
spell,
static_cast<int>(attack_skill)
); if(parse->EventPlayer(EVENT_DEATH, this, export_string, 0) != 0) {
);
if(parse->EventPlayer(EVENT_DEATH, this, export_string, 0) != 0) {
if(GetHP() < 0) {
SetHP(0);
}
Expand Down

0 comments on commit a05363b

Please sign in to comment.