diff --git a/Minecraft.World/Zombie.cpp b/Minecraft.World/Zombie.cpp index a21d02e0..2f26c102 100644 --- a/Minecraft.World/Zombie.cpp +++ b/Minecraft.World/Zombie.cpp @@ -153,7 +153,6 @@ bool Zombie::hurt(DamageSource *source, float dmg) { if (Monster::hurt(source, dmg)) { -/* shared_ptr target = getTarget(); if ( (target == nullptr) && getAttackTarget() != nullptr && getAttackTarget()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast( getAttackTarget() ); if ( (target == nullptr) && source->getEntity() != nullptr && source->getEntity()->instanceof(eTYPE_LIVINGENTITY) ) target = dynamic_pointer_cast( source->getEntity() ); @@ -188,7 +187,7 @@ bool Zombie::hurt(DamageSource *source, float dmg) } } } -*/ + return true; }