Fixed old & deprecated plugins not being able to create a config file

This commit is contained in:
Shoghi Cervantes Pueyo
2013-01-26 17:32:56 +01:00
parent 00c3201580
commit afbb5fab04
4 changed files with 5 additions and 4 deletions

View File

@@ -50,12 +50,12 @@ class EntityAPI{
$this->harm($eid, -$heal, $cause);
}
public function harm($eid, $attack = 1, $cause){
public function harm($eid, $attack = 1, $cause, $force = false){
$e = $this->get($eid);
if($e === false or $e->dead === true){
return false;
}
$e->setHealth($e->getHealth() - $attack, $cause);
$e->setHealth($e->getHealth() - $attack, $cause, $force);
}
public function add($class, $type = 0, $data = array()){