Merge pull request #1581 from PEMapModder/patch-1

Update cause of lava and fire damage
This commit is contained in:
Michael Yoo 2014-07-09 16:38:12 +09:30
commit ff90b83a9f

View File

@ -436,7 +436,7 @@ abstract class Entity extends Position implements Metadatable{
}
}else{
if(($this->fireTicks % 20) === 0){
$this->attack(1, "onFire");
$this->attack(1, EntityDamageEvent::CAUSE_FIRE_TICK);
}
--$this->fireTicks;
}
@ -444,7 +444,7 @@ abstract class Entity extends Position implements Metadatable{
}
if($this->handleLavaMovement()){
$this->attack(4, "lava");
$this->attack(4, EntityDamageEvent::CAUSE_LAVA);
$this->setOnFire(15);
$hasUpdate = true;
$this->fallDistance *= 0.5;
@ -1050,4 +1050,4 @@ abstract class Entity extends Position implements Metadatable{
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
}
}
}