if(mob instanceof L2OutpostGuardInstance) { L2OutpostGuardInstance guard = (L2OutpostGuardInstance) mob; if (guard != null) { guard.setIsDeadGuard(false); } }