v2.0.1: fixed life link incorrectly persisting on downed ghouls

This commit is contained in:
Evan Debenham
2023-03-28 13:09:07 -04:00
parent b3865463a2
commit 7002790982

View File

@@ -43,7 +43,7 @@ public class LifeLink extends FlavourBuff {
public void detach() {
super.detach();
Char ch = (Char)Actor.findById(object);
if (!target.isAlive() && ch != null){
if (!target.isActive() && ch != null){
for (LifeLink l : ch.buffs(LifeLink.class)){
if (l.object == target.id()){
l.detach();