v2.1.1: fixed errors with charm from friendly elemental strike

This commit is contained in:
Evan Debenham
2023-06-06 17:05:43 -04:00
parent 88a80fb289
commit 744fa70ee1

View File

@@ -529,7 +529,7 @@ public class ElementalStrike extends ArmorAbility {
} else if (ench instanceof Friendly){
for (Char ch : affected){
if (Random.Float() < 0.5f*powerMulti){
Buff.affect(ch, Charm.class, 6f).target = hero;
Buff.affect(ch, Charm.class, 6f).object = hero.id();
}
}
}