Added Conduit Power effect

This commit is contained in:
max
2018-05-20 11:38:03 +02:00
committed by Dylan K. Taylor
parent c947909c2e
commit f3b2bcfd13
3 changed files with 4 additions and 2 deletions

View File

@ -718,7 +718,7 @@ abstract class Living extends Entity implements Damageable{
* @return bool
*/
public function canBreathe() : bool{
return $this->hasEffect(Effect::WATER_BREATHING) or !$this->isUnderwater();
return $this->hasEffect(Effect::WATER_BREATHING) or $this->hasEffect(Effect::CONDUIT_POWER) or !$this->isUnderwater();
}
/**