Fix unsafe blink bugs
This commit is contained in:
@@ -59,15 +59,15 @@ foldCr xs cr w = foldr f w xs
|
||||
-- may affect whether the shield moves correctly
|
||||
stateUpdate :: (Creature -> World -> World) -> Creature -> World -> World
|
||||
stateUpdate f = foldCr
|
||||
[ clearDamage
|
||||
, equipmentEffects
|
||||
[ equipmentEffects
|
||||
, invSideEff
|
||||
, upInv -- upInv must be called before invSideEff 22.05.23
|
||||
, movementSideEff
|
||||
, f
|
||||
, internalUpdate
|
||||
, checkDeath
|
||||
, doDamage
|
||||
, clearDamage -- these three
|
||||
, checkDeath -- must be in
|
||||
, doDamage -- this order 22/06/05
|
||||
]
|
||||
|
||||
checkDeath :: Creature -> World -> World
|
||||
|
||||
Reference in New Issue
Block a user