mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-30 23:37:03 +00:00
pcmove:: dont attack tree if you have flash
This commit is contained in:
parent
c87dc5a1f0
commit
d4dfdc1a43
@ -716,8 +716,10 @@ bool pcmove::after_escape() {
|
||||
if(forcedmovetype == fmAttack) attackable = true;
|
||||
attackable = attackable && (!c2->monst || isFriendly(c2));
|
||||
attackable = attackable && !nonAdjacentPlayer(cwt.at,c2);
|
||||
|
||||
if(attackable && fmsAttack) {
|
||||
|
||||
bool dont_attack = items[itOrbFlash] || items[itOrbLightning];
|
||||
|
||||
if(attackable && fmsAttack && !dont_attack) {
|
||||
if(checkNeedMove(checkonly, true)) return false;
|
||||
nextmovetype = nm ? lmAttack : lmSkip;
|
||||
if(c2->wall == waSmallTree) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user