v3.1.0: fixed no entry appearing in rankings for death by life link
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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") );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user