v3.0.0: life link no longer shares hunger damage

This commit is contained in:
Evan Debenham
2025-02-18 14:21:01 -05:00
parent 31af7d9317
commit 7fe16afe6a

View File

@@ -769,7 +769,7 @@ public abstract class Char extends Actor {
return;
}
if (!(src instanceof LifeLink) && buff(LifeLink.class) != null){
if (!(src instanceof LifeLink || src instanceof Hunger) && buff(LifeLink.class) != null){
HashSet<LifeLink> links = buffs(LifeLink.class);
for (LifeLink link : links.toArray(new LifeLink[0])){
if (Actor.findById(link.object) == null){