These are chat archives for olistic/warriorjs

Apr 2016
Rodrigo Espinosa
Apr 26 2016 13:16

Hey @kodifiera, I checked your code and looks like the fallback for the perform function ( is always false when it should be performed.

Let's say your warrior can perform an attack and !takesDamage( === true.

value of _performedAction
false _performedAction = perform(attackIfPossible, _performedAction);
true _performedAction = perform(rest, _performedAction);
false _performedAction = perform(walk, _performedAction);