@Override
	public void preUpdate() {
		Event ev;
		boolean expDamage = false;
		
		while(eventExist())
		{
			
			ev = popEvent();
			
			if(ev.getName().equals("explosion"))
			{
				if(!expDamage)
				{
					hp-=5;
					expDamage = true;
					
					if(hp <= 0 && alive)
					{
						destroy();
						pushEvent(ev.getSource().source, "monster xp");
						for(int i = 0; i < 10; i ++)
						{
							listElements.addElement(new MonsterBouftouBallHeal(x+Math.random()*30-15, y+Math.random()*30-15, ev.getSource().source));
						}
					}
				}
			}
			if(ev.getName().equals("robot"))
			{
				destroy();
			}
		}	
	}