v1.3.0: adjusted dazzling, now only full duration blinds attacker

This commit is contained in:
Evan Debenham
2022-06-13 11:48:46 -04:00
parent 54bcb27749
commit 494f4c7ef2

View File

@@ -46,7 +46,7 @@ public class Dazzling extends Weapon.Enchantment {
if (Random.Float() < procChance) {
for (Char ch : Actor.chars()){
if (ch.fieldOfView != null && ch.fieldOfView[defender.pos]){
Buff.prolong(ch, Blindness.class, Blindness.DURATION);
Buff.prolong(ch, Blindness.class, ch == attacker ? Blindness.DURATION : Blindness.DURATION/2f);
if (ch == Dungeon.hero){
GameScene.flash(0x80FFFFFF);
}