v3.1.0: fixed no entry appearing in rankings for death by life link

This commit is contained in:
Evan Debenham
2025-05-08 13:51:34 -04:00
parent a9984e5b7d
commit 76e698cb0a
2 changed files with 6 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ actors.buffs.levitation.name=levitating
actors.buffs.levitation.desc=A magical force is levitating you over the ground, making you feel weightless.\n\nLevitating characters move silently and ignore all ground-based effects. Traps won't trigger, water won't put out fire, plants won't be trampled, roots will miss, and pits will be hovered over. Be careful, as all these things can come into effect the second the levitation ends!\n\nTurns of levitation remaining: %s.
actors.buffs.lifelink.name=life link
actors.buffs.lifelink.ondeath=The life linked damage killed you...
actors.buffs.lifelink.desc=This character's life force is linked to another character nearby. Any damage taken is shared between them.\n\nWhenever this character takes damage, half of it will be dealt to the life link target instead.\n\nTurns of life link remaining: %s.
actors.buffs.light.name=illuminated

View File

@@ -825,6 +825,11 @@ public abstract class Char extends Actor {
ch.damage(dmg, link);
if (!ch.isAlive()) {
link.detach();
if (ch == Dungeon.hero){
Badges.validateDeathFromFriendlyMagic();
Dungeon.fail(src);
GLog.n( Messages.get(LifeLink.class, "ondeath") );
}
}
}
}