v2.0.1: fixed life link incorrectly persisting on downed ghouls
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ public class LifeLink extends FlavourBuff {
|
|||||||
public void detach() {
|
public void detach() {
|
||||||
super.detach();
|
super.detach();
|
||||||
Char ch = (Char)Actor.findById(object);
|
Char ch = (Char)Actor.findById(object);
|
||||||
if (!target.isAlive() && ch != null){
|
if (!target.isActive() && ch != null){
|
||||||
for (LifeLink l : ch.buffs(LifeLink.class)){
|
for (LifeLink l : ch.buffs(LifeLink.class)){
|
||||||
if (l.object == target.id()){
|
if (l.object == target.id()){
|
||||||
l.detach();
|
l.detach();
|
||||||
|
|||||||
Reference in New Issue
Block a user