mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Turned off dead Thang underlayering when in the air.
This commit is contained in:
parent
1535b6bdd2
commit
0c8b5ec9a8
1 changed files with 2 additions and 2 deletions
|
@ -95,12 +95,12 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
|
|||
if aLank = a.lank
|
||||
if aThang = aLank.thang
|
||||
aPos = aThang.pos
|
||||
if aThang.health < 0
|
||||
if aThang.health < 0 and aThang.pos.z <= aThang.depth / 2 # Nice for not being knee deep in the dead, but not nice for ogres flying behind trees
|
||||
--az
|
||||
if bLank = b.lank
|
||||
if bThang = bLank.thang
|
||||
bPos = bThang.pos
|
||||
if bThang.health < 0
|
||||
if bThang.health < 0 and bThang.pos.z <= bThang.depth / 2
|
||||
--bz
|
||||
if az is bz
|
||||
return 0 unless aPos and bPos
|
||||
|
|
Loading…
Reference in a new issue