mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 18:37:39 +00:00
pcmove:: dont attack tree if you have flash
This commit is contained in:
@@ -716,8 +716,10 @@ bool pcmove::after_escape() {
|
|||||||
if(forcedmovetype == fmAttack) attackable = true;
|
if(forcedmovetype == fmAttack) attackable = true;
|
||||||
attackable = attackable && (!c2->monst || isFriendly(c2));
|
attackable = attackable && (!c2->monst || isFriendly(c2));
|
||||||
attackable = attackable && !nonAdjacentPlayer(cwt.at,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;
|
if(checkNeedMove(checkonly, true)) return false;
|
||||||
nextmovetype = nm ? lmAttack : lmSkip;
|
nextmovetype = nm ? lmAttack : lmSkip;
|
||||||
if(c2->wall == waSmallTree) {
|
if(c2->wall == waSmallTree) {
|
||||||
|
|||||||
Reference in New Issue
Block a user