Implemented Instant Health and Instant Damage effects

This commit is contained in:
Dylan K. Taylor
2017-03-21 11:38:08 +00:00
parent a5a51fb9c5
commit 2d927db264
5 changed files with 163 additions and 45 deletions

View File

@ -492,7 +492,7 @@ abstract class Entity extends Location implements Metadatable{
$count = 0;
$ambient = true;
foreach($this->effects as $effect){
if($effect->isVisible()){
if($effect->isVisible() and $effect->hasBubbles()){
$c = $effect->getColor();
$color[0] += $c[0] * ($effect->getAmplifier() + 1);
$color[1] += $c[1] * ($effect->getAmplifier() + 1);