mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-07 22:50:10 +00:00
using an Orb of Change on a Red Raider now also changes the other Red Raider
This commit is contained in:
parent
fc06e999c8
commit
62c2f0f666
10
orbs.cpp
10
orbs.cpp
@ -910,6 +910,7 @@ void stun_attack(cell *dest) {
|
|||||||
|
|
||||||
void poly_attack(cell *dest) {
|
void poly_attack(cell *dest) {
|
||||||
playSound(dest, "orb-ranged");
|
playSound(dest, "orb-ranged");
|
||||||
|
eMonster orig = dest->monst;
|
||||||
auto polymonsters = {
|
auto polymonsters = {
|
||||||
moYeti, moRunDog, moHunterDog, moRanger,
|
moYeti, moRunDog, moHunterDog, moRanger,
|
||||||
moDesertman, moMonkey, moZombie, moCultist,
|
moDesertman, moMonkey, moZombie, moCultist,
|
||||||
@ -928,6 +929,15 @@ void poly_attack(cell *dest) {
|
|||||||
addMessage(XLAT("You polymorph %the1 into %the2!", dest->monst, target));
|
addMessage(XLAT("You polymorph %the1 into %the2!", dest->monst, target));
|
||||||
dest->monst = target;
|
dest->monst = target;
|
||||||
if(!dest->stuntime) dest->stuntime = 1;
|
if(!dest->stuntime) dest->stuntime = 1;
|
||||||
|
|
||||||
|
if(orig == moPair) {
|
||||||
|
cell *dest2 = dest->move(dest->mondir);
|
||||||
|
if(dest2->monst == moPair) {
|
||||||
|
dest2->monst = dest->monst;
|
||||||
|
if(!dest2->stuntime) dest2->stuntime = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
checkStunKill(dest);
|
checkStunKill(dest);
|
||||||
useupOrb(itOrbMorph, 3);
|
useupOrb(itOrbMorph, 3);
|
||||||
createNoise(3);
|
createNoise(3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user