I have this
but here is an error in the 4 line "not a statement" can somebody help me?
public void looseHeal()
{
heal = heal-20;
if (heal<=0) getWorld().removeObject(this);
}Actor Agricultor1 = getOneObjectAtOffset(0,0,Agricultor1.class);
if(Agricultor1!=null){
MyWorld MyW=(MyWorld)getWorld();
looseHeal().Agricultor1;
}

