public function kill()
{
$color = Potion::getColor($this->getPotionId());
$this->getLevel()->addParticle(new SpellParticle($this, $color[0], $color[1], $color[2]));
$players = $this->getViewers();
foreach ($players as $p) {
if ($p->distance($this) <= 6) {
foreach (Potion::getEffectsById($this->getPotionId()) as $effect) {
$p->addEffect($effect);
}
}
}
parent::kill();
}