Fixed things

This commit is contained in:
Shoghi Cervantes
2014-05-22 20:48:17 +02:00
parent 98e9b5594c
commit 48af130269
3 changed files with 24 additions and 10 deletions

View File

@ -230,6 +230,11 @@ class Human extends Creature implements ProjectileSource, InventorySource{
return true;
}
/**
* @param int $slot
*
* @return Item
*/
public function getArmorSlot($slot){
$slot = (int) $slot;
if(!isset($this->armor[$slot])){