mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 23:50:27 +00:00
shmup: fixed redundant and incorrect revival of mirror spirits
This commit is contained in:
parent
1612b767b3
commit
a614af8dbe
@ -1829,12 +1829,10 @@ void moveBullet(monster *m, int delta) {
|
||||
// Orb of Winter protects from fireballs
|
||||
if(m->type == moFireball && ((isPlayer(m2) && markOrb(itOrbWinter)) || m2->type == moWitchWinter))
|
||||
continue;
|
||||
bool revive = m2->type == moMirrorSpirit && !m2->dead;
|
||||
killMonster(m2, m->parent ? m->parent->type : moNone);
|
||||
if(revive && m2->dead) {
|
||||
hr::kills[moMirrorSpirit]--;
|
||||
int ms = mirrorspirits;
|
||||
killMonster(m2, m->get_parenttype());
|
||||
if(mirrorspirits > ms) {
|
||||
multi::kills[cpid]--;
|
||||
mirrorspirits++;
|
||||
}
|
||||
if(m2->dead && m2->type == moAsteroid) {
|
||||
gainItem(itAsteroid);
|
||||
|
Loading…
Reference in New Issue
Block a user