Skip to content

Commit

Permalink
Basically ignore events with zero damage for god-mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Feb 8, 2013
1 parent c6ed761 commit 602b4c7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -137,7 +137,7 @@ public boolean check(final Player player, final int damage){

// Check if reduced more than expected or new/count down fully.
// TODO: Mostly workarounds.
if (delta <= 0 || data.lastNoDamageTicks == 0 || dTick > data.lastNoDamageTicks || damage > player.getLastDamage()){
if (delta <= 0 || data.lastNoDamageTicks == 0 || dTick > data.lastNoDamageTicks || damage > player.getLastDamage() || damage == 0){
// Not resetting acc.
legit = set = true;
}
Expand Down

0 comments on commit 602b4c7

Please sign in to comment.