no grazing while invurnerable
This commit is contained in:
parent
85f8799664
commit
ec276db013
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ int collision_projectile(Projectile *p) {
|
|||
if(dst < projr + 1)
|
||||
return 1;
|
||||
|
||||
if(!p->grazed && dst < grazer) {
|
||||
if(!p->grazed && dst < grazer && global.frames - abs(global.plr.recovery) > 0) {
|
||||
p->grazed = True;
|
||||
global.points += 10;
|
||||
play_sound("graze");
|
||||
|
|
Loading…
Reference in a new issue