Skip to content

Commit

Permalink
Remove invincibility frames from Blunderbuss
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Jan 24, 2023
1 parent 57f29b2 commit 2f09d90
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ protected float getImpactDamage(Entity target) {

@Override
protected boolean onEntityHit(Entity entity) {
entity.attackEntityFrom(causeImpactDamage(entity, getThrower()), getImpactDamage(entity));
int prevResistantTime = entity.hurtResistantTime;
if (entity.attackEntityFrom(causeImpactDamage(entity, getThrower()), getImpactDamage(entity)))
entity.hurtResistantTime = prevResistantTime;
return true;
}

Expand All @@ -54,4 +56,5 @@ public void onUpdated() {
setDead();
}
}

}

0 comments on commit 2f09d90

Please sign in to comment.