Merge branch 'release/3.2'

This commit is contained in:
Dylan K. Taylor
2018-08-07 14:39:56 +01:00
2 changed files with 24 additions and 1 deletions

View File

@ -560,7 +560,7 @@ abstract class Living extends Entity implements Damageable{
return;
}
$this->attackTime = 10; //0.5 seconds cooldown
$this->attackTime = $source->getAttackCooldown();
if($source instanceof EntityDamageByEntityEvent){
$e = $source->getDamager();