fixed immortal elly
This commit is contained in:
parent
fa973116a3
commit
9e6ae8cbb4
1 changed files with 8 additions and 8 deletions
16
src/player.c
16
src/player.c
|
@ -133,11 +133,11 @@ void player_logic(Player* plr) {
|
|||
plr->pos -= 0.7I;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(plr->focus < 0 || (plr->focus > 0 && plr->focus < 30))
|
||||
plr->focus++;
|
||||
|
||||
|
||||
|
||||
|
||||
switch(plr->cha) {
|
||||
case Youmu:
|
||||
youmu_shot(plr);
|
||||
|
@ -147,21 +147,21 @@ void player_logic(Player* plr) {
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(global.frames == plr->deathtime)
|
||||
player_realdeath(plr);
|
||||
|
||||
|
||||
if(global.frames - plr->recovery < 0) {
|
||||
Enemy *en;
|
||||
for(en = global.enemies; en; en = en->next)
|
||||
if(!en->unbombable)
|
||||
if(!en->unbombable && en->hp > ENEMY_IMMUNE)
|
||||
en->hp -= 300;
|
||||
|
||||
|
||||
Projectile *p;
|
||||
for(p = global.projs; p; p = p->next)
|
||||
if(p->type >= FairyProj)
|
||||
p->type = DeadProj;
|
||||
|
||||
|
||||
if(global.boss && global.boss->current) {
|
||||
AttackType at = global.boss->current->type;
|
||||
if(at != AT_Move && at != AT_SurvivalSpell)
|
||||
|
|
Loading…
Reference in a new issue