v2.5.0: fixed new cursed wand lightning applying para after kill
This commit is contained in:
+3
-2
@@ -576,8 +576,9 @@ public class CursedWand {
|
|||||||
if (ch.alignment != Char.Alignment.ALLY || !positiveOnly){
|
if (ch.alignment != Char.Alignment.ALLY || !positiveOnly){
|
||||||
//shocking dart damage and a little stun
|
//shocking dart damage and a little stun
|
||||||
ch.damage(Random.NormalIntRange(5 + Dungeon.scalingDepth() / 4, 10 + Dungeon.scalingDepth() / 4), new Electricity());
|
ch.damage(Random.NormalIntRange(5 + Dungeon.scalingDepth() / 4, 10 + Dungeon.scalingDepth() / 4), new Electricity());
|
||||||
Buff.affect(ch, Paralysis.class, Paralysis.DURATION/2f);
|
if (ch.isAlive()) {
|
||||||
if (!ch.isAlive() && ch == Dungeon.hero){
|
Buff.affect(ch, Paralysis.class, Paralysis.DURATION / 2f);
|
||||||
|
} else if (ch == Dungeon.hero){
|
||||||
if (user == Dungeon.hero && origin != null) {
|
if (user == Dungeon.hero && origin != null) {
|
||||||
Badges.validateDeathFromFriendlyMagic();
|
Badges.validateDeathFromFriendlyMagic();
|
||||||
Dungeon.fail( origin );
|
Dungeon.fail( origin );
|
||||||
|
|||||||
Reference in New Issue
Block a user