v0.6.3: fixed a bug in battlemage frost logic

This commit is contained in:
Evan Debenham 2018-01-27 00:02:54 -05:00 committed by Evan Debenham
parent 6c0d240598
commit 80d19ac2d0

View File

@ -104,7 +104,7 @@ public class WandOfFrost extends DamageWand {
@Override
public void onHit(MagesStaff staff, Char attacker, Char defender, int damage) {
Chill chill = defender.buff(Chill.class);
if (chill != null && Random.IntRange(2, 10) > chill.cooldown()){
if (chill != null && Random.IntRange(2, 10) <= chill.cooldown()){
//need to delay this through an actor so that the freezing isn't broken by taking damage from the staff hit.
new FlavourBuff(){
{actPriority = VFX_PRIO;}