function BeginUnit(_unit)
        if unit.IsEnemy(_unit) == false then
                local extralValue = -100
                if _unit.Injured > 0 then
                   _unit.Injured = _unit.Injured + extralValue
                end                                             
                if _unit.Wounded > 0 then               
                   _unit.Wounded = _unit.Wounded + extralValue
                end
                if _unit.Poisoned > 0 then
                   _unit.Poisoned = _unit.Poisoned + extralValue
                end
                if _unit.Sealed > 0 then
                   _unit.Sealed = _unit.Sealed + extralValue
                end
                if _unit.Confused > 0 then
                   _unit.Confused = _unit.Confused + extralValue
                end
                if _unit.Sprained > 0 then
                   _unit.Sprained = _unit.Sprained + extralValue
                end
                if _unit.Cramped > 0 then
                   _unit.Cramped = _unit.Cramped + extralValue
                end
                if _unit.Frozen > 0 then
                   _unit.Frozen = _unit.Frozen + extralValue
                  end                                                                                     
                if _unit.Dazed > 0 then               
                   _unit.Dazed = _unit.Drunk + extralValue
                end
				if _unit.AP >= 0 then
                   _unit.AP = _unit.AP + 10
                end
                if _unit.HP >= 0 then
                   _unit.HP = _unit.HP + _unit.MaxHP * 1
                end                                                                                     
                if _unit.MP >= 0 then
                   _unit.MP = _unit.MP + _unit.MaxMP * 1
                end
        end
end