Cleaned up Effect handling and replacement

This commit is contained in:
Dylan K. Taylor
2017-08-30 12:53:41 +01:00
parent bde6d7db8d
commit 21f09d5fdb
3 changed files with 18 additions and 39 deletions

View File

@ -237,9 +237,9 @@ abstract class Living extends Entity implements Damageable{
){
return;
}
$effect->add($this, true, $oldEffect);
$effect->add($this, $oldEffect);
}else{
$effect->add($this, false);
$effect->add($this);
}
$this->effects[$effect->getId()] = $effect;