Skip to content

Commit

Permalink
Merged PR from GladieUO: CAN_I_DAMAGEABLE not updating status bar #1259
Browse files Browse the repository at this point in the history
  • Loading branch information
cbnolok committed Aug 10, 2024
1 parent cef9cc2 commit a5fbc8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3858,3 +3858,6 @@ Added: 'H' shortcut for variables to get the value as hexadecimal.
So for example if you have a MONSTER (H slot) flying custom anim, with Cast2 action but not Pillage action you can set ANIM=020A0
If you have a custom anim with default configuration, you don't need to set ANIM=

10-08-2024, Gladie
- Fixed: CAN_I_DAMAGEABLE not updating status bar (PR #1259, issues #1248, #1260).

2 changes: 2 additions & 0 deletions src/game/components/CCItemDamageable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void CCItemDamageable::SetCurHits(word iCurHits)
_fNeedUpdate = true;
}
_iCurHits = iCurHits;
OnTickStatsUpdate();
}

void CCItemDamageable::SetMaxHits(word iMaxHits)
Expand All @@ -44,6 +45,7 @@ void CCItemDamageable::SetMaxHits(word iMaxHits)
_fNeedUpdate = true;
}
_iMaxHits = iMaxHits;
OnTickStatsUpdate();
}

word CCItemDamageable::GetCurHits() const
Expand Down

0 comments on commit a5fbc8d

Please sign in to comment.