v2.0.2: fixed elemental strike + lucky working on ally characters
This commit is contained in:
+3
-2
@@ -407,8 +407,9 @@ public class ElementalStrike extends ArmorAbility {
|
|||||||
//*** Lucky ***
|
//*** Lucky ***
|
||||||
} else if (ench instanceof Lucky){
|
} else if (ench instanceof Lucky){
|
||||||
for (Char ch : affected){
|
for (Char ch : affected){
|
||||||
if (Random.Float() < 0.1f*powerMulti &&
|
if (ch.alignment == Char.Alignment.ENEMY
|
||||||
ch.buff(ElementalStrikeLuckyTracker.class) == null) {
|
&& Random.Float() < 0.1f*powerMulti
|
||||||
|
&& ch.buff(ElementalStrikeLuckyTracker.class) == null) {
|
||||||
Dungeon.level.drop(Lucky.genLoot(), ch.pos).sprite.drop();
|
Dungeon.level.drop(Lucky.genLoot(), ch.pos).sprite.drop();
|
||||||
Lucky.showFlare(ch.sprite);
|
Lucky.showFlare(ch.sprite);
|
||||||
Buff.affect(ch, ElementalStrikeLuckyTracker.class);
|
Buff.affect(ch, ElementalStrikeLuckyTracker.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user