Change A_BombShield to add P_BlackOw.

Now when you obtain an Armageddon Shield, and
you already HAVE one, the first one explodes
_while_ applying the second.
This commit is contained in:
Yukita Mayako 2015-05-27 21:08:30 -04:00
parent 18920e486d
commit ecd867ab35

View file

@ -3200,12 +3200,13 @@ void A_BombShield(mobj_t *actor)
player = actor->target->player; player = actor->target->player;
if ((player->powers[pw_shield] & SH_NOSTACK) != SH_BOMB) // If you already have a bomb shield, use it!
{ if ((player->powers[pw_shield] & SH_NOSTACK) == SH_BOMB)
player->powers[pw_shield] = SH_BOMB|(player->powers[pw_shield] & SH_STACK); P_BlackOw(player);
P_SpawnShieldOrb(player);
}
// Now we know for certain that we don't have a bomb shield, so add one. :3
player->powers[pw_shield] = SH_BOMB|(player->powers[pw_shield] & SH_STACK);
P_SpawnShieldOrb(player);
S_StartSound(player->mo, actor->info->seesound); S_StartSound(player->mo, actor->info->seesound);
} }